diff options
author | Paul B Mahol <onemda@gmail.com> | 2021-02-12 21:19:27 +0100 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2021-02-12 21:21:25 +0100 |
commit | 05a6d82d5cc3e5c5b0ea97b9a6f4778c1c82d71c (patch) | |
tree | 75e7cac2a528616afb9f0ff18da305c3b1b2da49 /libavfilter/vf_ssim.c | |
parent | 735ec7666b9a727ceb2e9f623050f575ddf05f8d (diff) | |
download | ffmpeg-05a6d82d5cc3e5c5b0ea97b9a6f4778c1c82d71c.tar.gz |
avfilter/vf_ssim: add timeline support
Diffstat (limited to 'libavfilter/vf_ssim.c')
-rw-r--r-- | libavfilter/vf_ssim.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavfilter/vf_ssim.c b/libavfilter/vf_ssim.c index a32fada220..b676f0c320 100644 --- a/libavfilter/vf_ssim.c +++ b/libavfilter/vf_ssim.c @@ -294,7 +294,7 @@ static int do_ssim(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; @@ -518,4 +518,5 @@ AVFilter ff_vf_ssim = { .priv_class = &ssim_class, .inputs = ssim_inputs, .outputs = ssim_outputs, + .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL, }; |