Commit be96ebdc authored by Michael Niedermayer's avatar Michael Niedermayer

avfilter/vf_fieldhint: Reorder operation to prevent hypothetical integer overflow

Fixes CID1355110
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 7ae4d574
......@@ -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];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment