1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avfilter/vf_psnr: fix logic failure when comparing time bases

This commit is contained in:
Paul B Mahol 2020-02-01 21:10:25 +01:00
parent 89eee09739
commit 5c9a4ff8c1

View File

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