[MPlayer-dev-eng] [PATCH] small update

adland adland123 at yahoo.com
Mon Apr 26 05:44:34 CEST 2004


patch included below
file: libmpdemux/demux_lavf.c
intention:fix possible segfault on lavf demuxer  

--- main/libmpdemux/demux_lavf.c        2004-04-11 13:20:52.000000000 -0400
+++ updated/libmpdemux/demux_lavf.c     2004-04-25 18:33:46.000000000 -0400
@@ -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-dev-eng mailing list