Commit 5c9a4ff8 authored by Paul B Mahol's avatar Paul B Mahol

avfilter/vf_psnr: fix logic failure when comparing time bases

parent 89eee097
......@@ -352,7 +352,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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment