[FFmpeg-cvslog] avfilter/vf_ssim: add timeline support
Paul B Mahol
git at videolan.org
Fri Feb 12 22:22:14 EET 2021
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Fri Feb 12 21:19:27 2021 +0100| [05a6d82d5cc3e5c5b0ea97b9a6f4778c1c82d71c] | committer: Paul B Mahol
avfilter/vf_ssim: add timeline support
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=05a6d82d5cc3e5c5b0ea97b9a6f4778c1c82d71c
---
libavfilter/vf_ssim.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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,
};
More information about the ffmpeg-cvslog
mailing list