[MPlayer-dev-eng] [PATCH] fix bug in free_demuxer
Rich Felker
dalias at aerifal.cx
Thu Aug 18 19:44:58 CEST 2005
On Thu, Aug 18, 2005 at 10:27:30PM +0800, Meihui Fan wrote:
>
> Let's make all demuxer freed in free_demuxer,
> so we don't have to access the member(demux->desc->type) of the demuxer
> which already freed in libmpdemux/demux_demuxer.c/demux_close_demuxers.
>
> This bug may cause the MPlayer crashed when playing separated video and
> audio file.
Your patch is what causes MPlayer to crash, by accessing already-freed
memory. The way it is now is correct as far as I can tell.
Rich
More information about the MPlayer-dev-eng
mailing list