From d5763edab21b08cd1388a2f41885d11d61653917 Mon Sep 17 00:00:00 2001 From: Timo Rothenpieler Date: Mon, 2 Nov 2020 21:31:35 +0100 Subject: [PATCH] avutil/hwcontext_cuda: increase CUDA frame alignment to 512 At least on Turing, a frame without 512 byte alignment cannot be passed to cuTexObjectCreate. --- 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;