[Mplayer-cvslog] CVS: main/libmpdemux demux_lavf.c,1.6,1.7

Michael Niedermayer CVS syncmail at mplayerhq.hu
Thu May 13 00:48:17 CEST 2004


CVS change done by Michael Niedermayer CVS

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

Modified Files:
	demux_lavf.c 
Log Message:
segfault fix


Index: demux_lavf.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_lavf.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- demux_lavf.c	26 Apr 2004 19:55:55 -0000	1.6
+++ demux_lavf.c	12 May 2004 22:48:15 -0000	1.7
@@ -138,7 +138,10 @@
 
     register_protocol(&mp_protocol);
 
-    strncpy(mp_filename + 3, demuxer->stream->url, sizeof(mp_filename)-3);
+    if(demuxer->stream->url)
+        strncpy(mp_filename + 3, demuxer->stream->url, sizeof(mp_filename)-3);
+    else
+        strncpy(mp_filename + 3, "foobar.dummy", sizeof(mp_filename)-3);
     
     url_fopen(&priv->pb, mp_filename, URL_RDONLY);
     




More information about the MPlayer-cvslog mailing list