diff options
author | Paul B Mahol <onemda@gmail.com> | 2020-02-01 21:10:25 +0100 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2020-02-01 21:10:25 +0100 |
commit | 5c9a4ff8c1a8c938aee8ea924d2d3463653ac463 (patch) | |
tree | 446945ca9aea6d6f41416df70ac071df093bdc8e | |
parent | 89eee09739e02a73d7f247d0de4a403fecf64b01 (diff) | |
download | ffmpeg-5c9a4ff8c1a8c938aee8ea924d2d3463653ac463.tar.gz |
avfilter/vf_psnr: fix logic failure when comparing time bases
-rw-r--r-- | libavfilter/vf_psnr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_psnr.c b/libavfilter/vf_psnr.c index 706561eacb..c9a673dcde 100644 --- a/libavfilter/vf_psnr.c +++ b/libavfilter/vf_psnr.c @@ -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, |