# HG changeset patch # User michael # Date 1083009355 0 # Node ID 434242b0706ca1fa89d2e0ed5744d381859cdd58 # Parent f881c918739bf78fe3ad91a93a843ae6e603088a fix possible segfault on lavf demuxer patch by (adland ) diff -r f881c918739b -r 434242b0706c libmpdemux/demux_lavf.c --- 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; } }