[MPlayer-cvslog] CVS: main/libmpdemux demux_asf.c,1.42,1.43

Reimar Döffinger CVS syncmail at mplayerhq.hu
Sun Feb 12 10:58:29 CET 2006


CVS change done by Reimar Döffinger CVS

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

Modified Files:
	demux_asf.c 
Log Message:
we cannot continue without a crash when read_asf_header fails, since some
memory is allocated in that function (ugly!!).
Fixes bug #450, patch by Mikulas Patocka (mikulas at artax karlin mff cuni cz)


Index: demux_asf.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_asf.c,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -r1.42 -r1.43
--- demux_asf.c	9 Feb 2006 19:39:51 -0000	1.42
+++ demux_asf.c	12 Feb 2006 09:58:27 -0000	1.43
@@ -446,7 +446,8 @@
     sh_video_t *sh_video=NULL;
 
     //---- ASF header:
-    read_asf_header(demuxer);
+    if (!read_asf_header(demuxer))
+        return NULL;
     stream_reset(demuxer->stream);
     stream_seek(demuxer->stream,demuxer->movi_start);
 //    demuxer->idx_pos=0;




More information about the MPlayer-cvslog mailing list