diff options
author | Paul B Mahol <onemda@gmail.com> | 2020-02-01 21:09:32 +0100 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2020-02-01 21:09:32 +0100 |
commit | 89eee09739e02a73d7f247d0de4a403fecf64b01 (patch) | |
tree | aa02f770b1bab881074fca007eb594379ac0c16b /libavfilter/vf_ssim.c | |
parent | 81d25e5bfc4be0c82cf2f9aec28d4ef6e3a5d270 (diff) | |
download | ffmpeg-89eee09739e02a73d7f247d0de4a403fecf64b01.tar.gz |
avfilter/vf_ssim: fix logic failure when comparing time bases
Diffstat (limited to 'libavfilter/vf_ssim.c')
-rw-r--r-- | libavfilter/vf_ssim.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_ssim.c b/libavfilter/vf_ssim.c index c08fbcdcc2..7f10c52ca9 100644 --- a/libavfilter/vf_ssim.c +++ b/libavfilter/vf_ssim.c @@ -445,7 +445,7 @@ static int config_output(AVFilterLink *outlink) outlink->time_base = s->fs.time_base; - if (av_cmp_q(mainlink->time_base, outlink->time_base) && + if (av_cmp_q(mainlink->time_base, outlink->time_base) || av_cmp_q(ctx->inputs[1]->time_base, outlink->time_base)) av_log(ctx, AV_LOG_WARNING, "not matching timebases found between first input: %d/%d and second input %d/%d, results may be incorrect!\n", mainlink->time_base.num, mainlink->time_base.den, |