Browse Source

avutil/hwcontext_cuda: increase CUDA frame alignment to 512

At least on Turing, a frame without 512 byte alignment cannot be passed
to cuTexObjectCreate.
tags/n4.4
Timo Rothenpieler 4 years ago
parent
commit
d5763edab2
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavutil/hwcontext_cuda.c

+ 1
- 1
libavutil/hwcontext_cuda.c View 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;


Loading…
Cancel
Save