Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2021-02-12 23:19:27 +0300
committerPaul B Mahol <onemda@gmail.com>2021-02-12 23:21:25 +0300
commit05a6d82d5cc3e5c5b0ea97b9a6f4778c1c82d71c (patch)
tree75e7cac2a528616afb9f0ff18da305c3b1b2da49 /libavfilter/vf_ssim.c
parent735ec7666b9a727ceb2e9f623050f575ddf05f8d (diff)
avfilter/vf_ssim: add timeline support
Diffstat (limited to 'libavfilter/vf_ssim.c')
-rw-r--r--libavfilter/vf_ssim.c3
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,
};