[FFmpeg-cvslog] avfilter/vf_psnr: add timeline support

Paul B Mahol git at videolan.org
Fri Feb 12 22:22:11 EET 2021


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Fri Feb 12 21:18:23 2021 +0100| [735ec7666b9a727ceb2e9f623050f575ddf05f8d] | committer: Paul B Mahol

avfilter/vf_psnr: add timeline support

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=735ec7666b9a727ceb2e9f623050f575ddf05f8d
---

 libavfilter/vf_psnr.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavfilter/vf_psnr.c b/libavfilter/vf_psnr.c
index c9a673dcde..7d3d7c9248 100644
--- a/libavfilter/vf_psnr.c
+++ b/libavfilter/vf_psnr.c
@@ -154,7 +154,7 @@ static int do_psnr(FFFrameSync *fs)
     ret = ff_framesync_dualinput_get(fs, &master, &ref);
     if (ret < 0)
         return ret;
-    if (!ref)
+    if (ctx->is_disabled || !ref)
         return ff_filter_frame(ctx->outputs[0], master);
     metadata = &master->metadata;
 
@@ -427,4 +427,5 @@ AVFilter ff_vf_psnr = {
     .priv_class    = &psnr_class,
     .inputs        = psnr_inputs,
     .outputs       = psnr_outputs,
+    .flags         = AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL,
 };



More information about the ffmpeg-cvslog mailing list