Mercurial > mplayer.hg
changeset 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 | f881c918739b |
children | e6c9f2cda7d9 |
files | libmpdemux/demux_lavf.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
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; } }