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

index 30e0cd0..0c53193 100644 (file)
@@ -136,7 +136,7 @@ static int process_frame(FFFrameSync *fs)
         ctx->internal->execute(ctx, filter_slice, &td, NULL,
                                FFMIN(s->height[2], ff_filter_get_nb_threads(ctx)));
     }
-    out->pts = av_rescale_q(base->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);
 }