OSDN Git Service

lavfi/avf_concat: fix invalid exclusive test.
authorNicolas George <nicolas.george@normalesup.org>
Wed, 17 Oct 2012 17:54:22 +0000 (19:54 +0200)
committerNicolas George <nicolas.george@normalesup.org>
Wed, 17 Oct 2012 19:28:58 +0000 (21:28 +0200)
The invalid test did not cause any actual problem since
the first branch is only possible with bogus filters.

Fix coverity issue CID 733850.

libavfilter/avf_concat.c

index c0bd621..b3aed3c 100644 (file)
@@ -195,7 +195,7 @@ static void process_frame(AVFilterLink *inlink, AVFilterBufferRef *buf)
         av_log(ctx, AV_LOG_ERROR, "Frame after EOF on input %s\n",
                ctx->input_pads[in_no].name);
         avfilter_unref_buffer(buf);
-    } if (in_no >= cat->cur_idx + ctx->nb_outputs) {
+    } else if (in_no >= cat->cur_idx + ctx->nb_outputs) {
         ff_bufqueue_add(ctx, &cat->in[in_no].queue, buf);
     } else {
         push_frame(ctx, in_no, buf);