mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +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) {
|
||||
case 0:
|
||||
top = s->frame[1 + tf - outlink->frame_count];
|
||||
bottom = s->frame[1 + bf - outlink->frame_count];
|
||||
top = s->frame[tf - outlink->frame_count + 1];
|
||||
bottom = s->frame[bf - outlink->frame_count + 1];
|
||||
break;
|
||||
case 1:
|
||||
top = s->frame[1 + tf];
|
||||
|
Loading…
Reference in New Issue
Block a user