lavfi/avf_concat: return immediately after requesting a frame on input.

This commit is contained in:
Nicolas George 2015-10-23 12:36:17 +02:00
parent d92e0848d9
commit 79c1be124e

View File

@ -347,10 +347,9 @@ static int request_frame(AVFilterLink *outlink)
if (cat->in[str].eof) if (cat->in[str].eof)
continue; continue;
ret = ff_request_frame(ctx->inputs[str]); ret = ff_request_frame(ctx->inputs[str]);
if (ret == AVERROR_EOF) if (ret != AVERROR_EOF)
close_input(ctx, str);
else if (ret < 0)
return ret; return ret;
close_input(ctx, str);
} }
ret = flush_segment(ctx); ret = flush_segment(ctx);
if (ret < 0) if (ret < 0)