avfilter/vf_midequalizer: always use framesync timestamps
authorPaul B Mahol <onemda@gmail.com>
Sun, 14 Jul 2019 15:45:42 +0000 (17:45 +0200)
committerPaul B Mahol <onemda@gmail.com>
Sun, 14 Jul 2019 15:45:42 +0000 (17:45 +0200)
libavfilter/vf_midequalizer.c

index 6266cd7..38d2193 100644 (file)
@@ -122,7 +122,7 @@ static int process_frame(FFFrameSync *fs)
                             s->cchange, s->histogram_size);
         }
     }
-    out->pts = av_rescale_q(in0->pts, s->fs.time_base, outlink->time_base);
+    out->pts = av_rescale_q(s->fs.pts, s->fs.time_base, outlink->time_base);
 
     return ff_filter_frame(outlink, out);
 }