1
mirror of https://git.videolan.org/git/ffmpeg.git synced 2024-07-14 00:11:38 +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:
Michael Niedermayer 2016-05-29 18:11:53 +02:00
parent 7ae4d574e8
commit be96ebdcd7

View File

@ -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];