mirror of
https://git.videolan.org/git/ffmpeg.git
synced 2024-09-10 17:41:09 +02:00
avfilter/vf_fieldhint: Reorder operation to prevent hypothetical integer overflow
Fixes CID1355110 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
7ae4d574e8
commit
be96ebdcd7
@ -174,8 +174,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
|
|||||||
|
|
||||||
switch (s->mode) {
|
switch (s->mode) {
|
||||||
case 0:
|
case 0:
|
||||||
top = s->frame[1 + tf - outlink->frame_count];
|
top = s->frame[tf - outlink->frame_count + 1];
|
||||||
bottom = s->frame[1 + bf - outlink->frame_count];
|
bottom = s->frame[bf - outlink->frame_count + 1];
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
top = s->frame[1 + tf];
|
top = s->frame[1 + tf];
|
||||||
|
Loading…
Reference in New Issue
Block a user