mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-10-28 10:04:37 +08:00
avfilter/vf_thumbnail_cuda: use the single channel kernel for planar 16-bit formats
Fixes: out of array write on every frame of a planar 16-bit format Fixes: KsEohQi9YQw8 Found during triage/review of the security report Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
1 parent
ca5c10f188
commit
049d881a96
1 file changed
+3
-3
@@ -239,11 +239,11 @@ static int thumbnail(AVFilterContext *ctx, int *histogram, AVFrame *in)
|
||||
case AV_PIX_FMT_YUV444P10MSB:
|
||||
case AV_PIX_FMT_YUV444P12MSB:
|
||||
case AV_PIX_FMT_YUV444P16:
|
||||
thumbnail_kernel(ctx, s->cu_func_ushort2, 1,
|
||||
thumbnail_kernel(ctx, s->cu_func_ushort, 1,
|
||||
histogram, in->data[0], in->width, in->height, in->linesize[0], 2);
|
||||
thumbnail_kernel(ctx, s->cu_func_ushort2, 1,
|
||||
thumbnail_kernel(ctx, s->cu_func_ushort, 1,
|
||||
histogram + 256, in->data[1], in->width, in->height, in->linesize[1], 2);
|
||||
thumbnail_kernel(ctx, s->cu_func_ushort2, 1,
|
||||
thumbnail_kernel(ctx, s->cu_func_ushort, 1,
|
||||
histogram + 512, in->data[2], in->width, in->height, in->linesize[2], 2);
|
||||
break;
|
||||
default:
|
||||
|
||||
Reference in new issue
Block a user