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