Skip to content

Commit

Permalink
avutil/hwcontext_cuda: increase CUDA frame alignment to 512
Browse files Browse the repository at this point in the history
At least on Turing, a frame without 512 byte alignment cannot be passed
to cuTexObjectCreate.
  • Loading branch information
BtbN committed Nov 3, 2020
1 parent 1c430f6 commit d5763ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libavutil/hwcontext_cuda.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d5763ed

Please sign in to comment.