Browse code

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

Nicolas George authored on 2015/10/23 19:36:17
Showing 1 changed files
... ...
@@ -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)