summaryrefslogtreecommitdiff
path: root/libavfilter/vf_psnr.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2021-02-12 21:18:23 +0100
committerPaul B Mahol <onemda@gmail.com>2021-02-12 21:21:25 +0100
commit735ec7666b9a727ceb2e9f623050f575ddf05f8d (patch)
treefad4644acc38d48f2ad4ea556406175712341869 /libavfilter/vf_psnr.c
parent34922dffcae2eb3d0aa1f98a1a7e022c7edb0e6e (diff)
avfilter/vf_psnr: add timeline support
Diffstat (limited to 'libavfilter/vf_psnr.c')
-rw-r--r--libavfilter/vf_psnr.c3
1 files changed, 2 insertions, 1 deletions
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,
};