]> git.sesse.net Git - ffmpeg/commitdiff
avutil/hwcontext_cuda: increase CUDA frame alignment to 512
authorTimo Rothenpieler <timo@rothenpieler.org>
Mon, 2 Nov 2020 20:31:35 +0000 (21:31 +0100)
committerTimo Rothenpieler <timo@rothenpieler.org>
Tue, 3 Nov 2020 17:17:35 +0000 (18:17 +0100)
At least on Turing, a frame without 512 byte alignment cannot be passed
to cuTexObjectCreate.

libavutil/hwcontext_cuda.c

index 718a449b6e6e93a4776644ae511215c6c1cc2e39..546515ee66bd171bce1afc474fd3658f8248380e 100644 (file)
@@ -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;