summaryrefslogtreecommitdiff
path: root/libavfilter/avf_concat.c
diff options
context:
space:
mode:
authorNicolas George <george@nsup.org>2015-10-23 12:36:17 +0200
committerNicolas George <george@nsup.org>2015-11-07 16:43:36 +0100
commit79c1be124e59575fa0dc2bc16eca07553e6758b4 (patch)
tree2ffd565b41c26c1db53db21fd1fa5766d4c53e05 /libavfilter/avf_concat.c
parentd92e0848d9a5ad3c17253c13aaeada2817378609 (diff)
lavfi/avf_concat: return immediately after requesting a frame on input.
Diffstat (limited to 'libavfilter/avf_concat.c')
-rw-r--r--libavfilter/avf_concat.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libavfilter/avf_concat.c b/libavfilter/avf_concat.c
index 5a4b356ea8..4fa944766e 100644
--- a/libavfilter/avf_concat.c
+++ b/libavfilter/avf_concat.c
@@ -347,10 +347,9 @@ static int request_frame(AVFilterLink *outlink)
if (cat->in[str].eof)
continue;
ret = ff_request_frame(ctx->inputs[str]);
- if (ret == AVERROR_EOF)
- close_input(ctx, str);
- else if (ret < 0)
+ if (ret != AVERROR_EOF)
return ret;
+ close_input(ctx, str);
}
ret = flush_segment(ctx);
if (ret < 0)