Mercurial > mplayer.hg
diff libmpdemux/demux_lavf.c @ 12304:434242b0706c
fix possible segfault on lavf demuxer patch by (adland <adland123 at yahoo dot com>)
author | michael |
---|---|
date | Mon, 26 Apr 2004 19:55:55 +0000 |
parents | 44f33fb19acf |
children | 3a7ef0fbc2f9 |
line wrap: on
line diff
--- a/libmpdemux/demux_lavf.c Mon Apr 26 19:47:50 2004 +0000 +++ b/libmpdemux/demux_lavf.c Mon Apr 26 19:55:55 2004 +0000 @@ -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; } }