[FFmpeg-cvslog] lavfi/avf_concat: fix invalid exclusive test.
Nicolas George
git at videolan.org
Wed Oct 17 21:33:21 CEST 2012
ffmpeg | branch: master | Nicolas George <nicolas.george at normalesup.org> | Wed Oct 17 19:54:22 2012 +0200| [709628aa71f24520553eb10b0cf6d56784e6c3ec] | committer: Nicolas George
lavfi/avf_concat: fix invalid exclusive test.
The invalid test did not cause any actual problem since
the first branch is only possible with bogus filters.
Fix coverity issue CID 733850.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=709628aa71f24520553eb10b0cf6d56784e6c3ec
---
libavfilter/avf_concat.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavfilter/avf_concat.c b/libavfilter/avf_concat.c
index c0bd621..b3aed3c 100644
--- a/libavfilter/avf_concat.c
+++ b/libavfilter/avf_concat.c
@@ -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);
More information about the ffmpeg-cvslog
mailing list