ffmpeg | branch: master | Timo Rothenpieler <[email protected]> | Mon Nov  
2 21:31:35 2020 +0100| [d5763edab21b08cd1388a2f41885d11d61653917] | committer: 
Timo Rothenpieler

avutil/hwcontext_cuda: increase CUDA frame alignment to 512

At least on Turing, a frame without 512 byte alignment cannot be passed
to cuTexObjectCreate.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d5763edab21b08cd1388a2f41885d11d61653917
---

 libavutil/hwcontext_cuda.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavutil/hwcontext_cuda.c b/libavutil/hwcontext_cuda.c
index 718a449b6e..546515ee66 100644
--- a/libavutil/hwcontext_cuda.c
+++ b/libavutil/hwcontext_cuda.c
@@ -30,7 +30,7 @@
 #include "pixfmt.h"
 #include "imgutils.h"
 
-#define CUDA_FRAME_ALIGNMENT 256
+#define CUDA_FRAME_ALIGNMENT 512
 
 typedef struct CUDAFramesContext {
     int shift_width, shift_height;

_______________________________________________
ffmpeg-cvslog mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to