diff libmpdemux/demux_mov.c @ 14581:a9b1c0695a27

Reset stream eof after parsing header, fixes bug #218
author reimar
date Sun, 23 Jan 2005 21:39:51 +0000
parents b4b202086260
children 127c30674725
line wrap: on
line diff
--- a/libmpdemux/demux_mov.c	Sat Jan 22 20:28:32 2005 +0000
+++ b/libmpdemux/demux_mov.c	Sun Jan 23 21:39:51 2005 +0000
@@ -1607,6 +1607,8 @@
 	return 0;
     }
     lschunks(demuxer, 0, priv->moov_end, NULL);
+    // just in case we have hit eof while parsing...
+    demuxer->stream->eof = 0;
 //    mp_msg(MSGT_DEMUX, MSGL_INFO, "--------------\n");
 
     // find the best (longest) streams:
@@ -1710,6 +1712,7 @@
 	    }
 	}
     }
+    demuxer->stream->eof = 0;
 #endif
 
     return 1;