changeset 36856:3fa865bd3157

For -dump* to retry once of it reached EOF before writing anything.
author reimar
date Wed, 26 Feb 2014 22:02:06 +0000
parents 5cee3aefde4f
children e8d545fe74ac
files mplayer.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mplayer.c	Wed Feb 26 21:57:48 2014 +0000
+++ b/mplayer.c	Wed Feb 26 22:02:06 2014 +0000
@@ -3499,6 +3499,10 @@
             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;