Browse Source

avfilter/vf_ssim: fix logic failure when comparing time bases

tags/n4.3
Paul B Mahol 6 years ago
parent
commit
89eee09739
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavfilter/vf_ssim.c

+ 1
- 1
libavfilter/vf_ssim.c View File

@@ -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,


Loading…
Cancel
Save