lavfi/concat: fix logic error in framerate check
authorJun Zhao <barryjzhao@tencent.com>
Mon, 9 Sep 2019 01:39:38 +0000 (09:39 +0800)
committerJun Zhao <barryjzhao@tencent.com>
Mon, 9 Sep 2019 08:03:17 +0000 (16:03 +0800)
fix logic error in framerate check, it's introduced by commit
3ad5d4df9ce794d3eeb0f526c5f3e446bf97c616

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
libavfilter/avf_concat.c

index 2791859..28bd540 100644 (file)
@@ -136,7 +136,7 @@ static int config_output(AVFilterLink *outlink)
     for (seg = 1; seg < cat->nb_segments; seg++) {
         inlink = ctx->inputs[in_no + seg * ctx->nb_outputs];
         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,
                     "Video inputs have different frame rates, output will be VFR\n");
             outlink->frame_rate = av_make_q(1, 0);