mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-29 18:53:02 +00:00
avfilter/vf_scale_cuda: Fix incorrect scaling of > 8bit content
When i converted the filter to use texture objects instead of texture references, I incorrect dropped the `pixel_size` scaling factor when setting `pitchInBytes`. `src_pitch` is in pixels and so must be scaled up.
This commit is contained in:
parent
b79b29ddb1
commit
89bd7554b2
@ -357,7 +357,7 @@ static int call_resize_kernel(AVFilterContext *ctx, CUfunction func, int channel
|
||||
.res.pitch2D.numChannels = channels,
|
||||
.res.pitch2D.width = src_width,
|
||||
.res.pitch2D.height = src_height,
|
||||
.res.pitch2D.pitchInBytes = src_pitch,
|
||||
.res.pitch2D.pitchInBytes = src_pitch * pixel_size,
|
||||
.res.pitch2D.devPtr = (CUdeviceptr)src_dptr,
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user