1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-28 20:53:54 +02:00

avfilter/vf_unsharp_opencl: Use AV_VIDEO_MAX_PLANES

Related: CID1423281 Out-of-bounds read

Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer 2024-07-11 00:05:35 +02:00
parent e5c0f56ca0
commit 9229587c2d
No known key found for this signature in database
GPG Key ID: B18E8928B3948D64

View File

@ -59,7 +59,7 @@ typedef struct UnsharpOpenCLContext {
cl_int size_y;
cl_float amount;
cl_float threshold;
} plane[4];
} plane[AV_VIDEO_MAX_PLANES];
} UnsharpOpenCLContext;