lavfi/concat: fix logic error in framerate check

fix logic error in framerate check, it's introduced by commit
3ad5d4df9c

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
This commit is contained in:
Jun Zhao 2019-09-09 09:39:38 +08:00
parent 4e759b5675
commit a0abcb4a31

View File

@ -136,7 +136,7 @@ static int config_output(AVFilterLink *outlink)
for (seg = 1; seg < cat->nb_segments; seg++) { for (seg = 1; seg < cat->nb_segments; seg++) {
inlink = ctx->inputs[in_no + seg * ctx->nb_outputs]; inlink = ctx->inputs[in_no + seg * ctx->nb_outputs];
if (outlink->frame_rate.num != inlink->frame_rate.num || if (outlink->frame_rate.num != inlink->frame_rate.num ||
outlink->frame_rate.den != outlink->frame_rate.den) { outlink->frame_rate.den != inlink->frame_rate.den) {
av_log(ctx, AV_LOG_VERBOSE, av_log(ctx, AV_LOG_VERBOSE,
"Video inputs have different frame rates, output will be VFR\n"); "Video inputs have different frame rates, output will be VFR\n");
outlink->frame_rate = av_make_q(1, 0); outlink->frame_rate = av_make_q(1, 0);