[FFmpeg-cvslog] avutil/hwcontext_cuda: increase CUDA frame alignment to 512

Timo Rothenpieler git at videolan.org
Tue Nov 3 21:01:05 EET 2020


ffmpeg | branch: master | Timo Rothenpieler <timo at rothenpieler.org> | 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;



More information about the ffmpeg-cvslog mailing list