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

Michael Niedermayer CVS syncmail at mplayerhq.hu
Mon Apr 26 21:55:57 CEST 2004


CVS change done by Michael Niedermayer CVS

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

Modified Files:
	demux_lavf.c 
Log Message:
fix possible segfault on lavf demuxer patch by (adland <adland123 at yahoo dot com>)


Index: demux_lavf.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_lavf.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- demux_lavf.c	11 Apr 2004 17:20:52 -0000	1.5
+++ demux_lavf.c	26 Apr 2004 19:55:55 -0000	1.6
@@ -350,9 +350,11 @@
 void demux_close_lavf(demuxer_t *demuxer)
 {
     lavf_priv_t* priv = demuxer->priv;
- 
     if (priv){
-        av_close_input_file(priv->avfc); priv->avfc= NULL;
+        if(priv->avfc)
+       {
+         av_close_input_file(priv->avfc); priv->avfc= NULL;
+        }
         free(priv); demuxer->priv= NULL;
     }
 }




More information about the MPlayer-cvslog mailing list