For -dump* to retry once of it reached EOF before writing anything.
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>
Wed, 26 Feb 2014 22:02:06 +0000 (22:02 +0000)
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>
Wed, 26 Feb 2014 22:02:06 +0000 (22:02 +0000)
git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@36952 b3059339-0415-0410-9bf9-f77b7e298cf2

mplayer.c

index 2bbc9f9..167eba3 100644 (file)
--- a/mplayer.c
+++ b/mplayer.c
@@ -3499,6 +3499,10 @@ goto_enable_cache:
             exit_player(EXIT_ERROR);
         }
         stream_dump_progress_start();
+
+        // force retry in case bad interleaving caused EOF before.
+        ds->fill_count = 0;
+        ds->eof = 0;
         while (!ds->eof) {
             unsigned char *start;
             double pts;