[Mplayer-cvslog] CVS: main/libmpdemux demux_real.c,1.60,1.61

Reimar Döffinger CVS syncmail at mplayerhq.hu
Tue Aug 10 22:13:47 CEST 2004


CVS change done by Reimar Döffinger CVS

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

Modified Files:
	demux_real.c 
Log Message:
do not attempt to seek backward in stream on MDPR chunk with no codec data


Index: demux_real.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_real.c,v
retrieving revision 1.60
retrieving revision 1.61
diff -u -r1.60 -r1.61
--- demux_real.c	25 Jun 2004 18:45:56 -0000	1.60
+++ demux_real.c	10 Aug 2004 20:13:44 -0000	1.61
@@ -1044,6 +1044,11 @@
 		codec_data_size = stream_read_dword(demuxer->stream);
 		codec_pos = stream_tell(demuxer->stream);
 
+		if (!codec_data_size) {
+		  mp_msg(MSGT_DEMUX,MSGL_DBG2,"demux_real: no codec data in MDPR chunk at fpos=0x%X\n", codec_pos);
+		  break;
+		}
+
 		tmp = stream_read_dword(demuxer->stream);
 		
 		mp_msg(MSGT_DEMUX,MSGL_DBG2,"demux_real: type_spec: len=%d  fpos=0x%X  first_dword=0x%X (%.4s)  \n",




More information about the MPlayer-cvslog mailing list