[MPlayer-cvslog] r36406 - trunk/libmpdemux/demux_lavf.c
reimar
subversion at mplayerhq.hu
Mon Aug 5 20:57:04 CEST 2013
Author: reimar
Date: Mon Aug 5 20:57:04 2013
New Revision: 36406
Log:
Avoid dereferencing NULL pointer on close if we
never allocated a AVIOContext.
Modified:
trunk/libmpdemux/demux_lavf.c
Modified: trunk/libmpdemux/demux_lavf.c
==============================================================================
--- trunk/libmpdemux/demux_lavf.c Mon Aug 5 20:36:57 2013 (r36405)
+++ trunk/libmpdemux/demux_lavf.c Mon Aug 5 20:57:04 2013 (r36406)
@@ -872,7 +872,7 @@ static void demux_close_lavf(demuxer_t *
av_freep(&priv->avfc->key);
avformat_close_input(&priv->avfc);
}
- av_freep(&priv->pb->buffer);
+ if (priv->pb) av_freep(&priv->pb->buffer);
av_freep(&priv->pb);
free(priv); demuxer->priv= NULL;
}
More information about the MPlayer-cvslog
mailing list