mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-09 00:29:54 +00:00
avfilter/vf_scale_npp: fix out-of-bounds reads
Fixes CIDs 1396414 and 1396415
This commit is contained in:
parent
21583e936a
commit
0fbc9bbbbb
@ -400,7 +400,7 @@ static int nppscale_resize(AVFilterContext *ctx, NPPScaleStageContext *stage,
|
||||
NppStatus err;
|
||||
int i;
|
||||
|
||||
for (i = 0; i < FF_ARRAY_ELEMS(in->data) && in->data[i]; i++) {
|
||||
for (i = 0; i < FF_ARRAY_ELEMS(stage->planes_in) && i < FF_ARRAY_ELEMS(in->data) && in->data[i]; i++) {
|
||||
int iw = stage->planes_in[i].width;
|
||||
int ih = stage->planes_in[i].height;
|
||||
int ow = stage->planes_out[i].width;
|
||||
|
Loading…
Reference in New Issue
Block a user