]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/vf_fieldhint.c
vf_codecview: added new options
[ffmpeg] / libavfilter / vf_fieldhint.c
index 739c1bfa45b80632e3f02b5ac7e14784c4ddb548..2b845e7330583dc873475ab567fc18ce59fd74da 100644 (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];