[Mplayer-cvslog] CVS: main/libmpdemux demux_real.c,1.56,1.57

Moritz Bunkus CVS syncmail at mplayerhq.hu
Sun Mar 28 13:23:55 CEST 2004


CVS change done by Moritz Bunkus CVS

Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var2/tmp/cvs-serv24478

Modified Files:
	demux_real.c 
Log Message:
Stop reading the file if an INDX chunk is found instead of a data packet.

Index: demux_real.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_real.c,v
retrieving revision 1.56
retrieving revision 1.57
diff -u -r1.56 -r1.57
--- demux_real.c	22 Feb 2004 23:28:03 -0000	1.56
+++ demux_real.c	28 Mar 2004 11:23:53 -0000	1.57
@@ -528,6 +528,9 @@
 	demuxer->filepos = stream_tell(demuxer->stream);
         version = stream_read_word(demuxer->stream); /* version */
 	len = stream_read_word(demuxer->stream);	
+    } else if ((version == 0x494e) && (len == 0x4458)) {
+        mp_msg(MSGT_DEMUX,MSGL_V,"demux_real: Found INDX chunk. EOF.\n");
+        return 0;
     }
 
     




More information about the MPlayer-cvslog mailing list