ffmpeg: remove unnecessary hack for decoders which refuse to drain
authorwm4 <nfxjfg@googlemail.com>
Thu, 2 Mar 2017 09:38:44 +0000 (10:38 +0100)
committerwm4 <nfxjfg@googlemail.com>
Mon, 6 Mar 2017 10:08:03 +0000 (11:08 +0100)
Now the previous commit takes care of this instead.

ffmpeg.c

index db7e8cd..79c91ff 100644 (file)
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2652,12 +2652,6 @@ static int process_input_packet(InputStream *ist, const AVPacket *pkt, int no_eo
                    ist->file_index, ist->st->index, av_err2str(ret));
             if (exit_on_error)
                 exit_program(1);
-            // Decoding might not terminate if we're draining the decoder, and
-            // the decoder keeps returning an error.
-            // This should probably be considered a libavcodec issue.
-            // Sample: fate-vsynth1-dnxhd-720p-hr-lb
-            if (!pkt)
-                eof_reached = 1;
             break;
         }