[MPlayer-dev-eng] [PATCH]Potential crash with realmedia files

陆然 hephooey at gmail.com
Tue Jul 11 14:35:29 CEST 2006


Hi,

demux_real_fill_buffer() set demuxer->stream->eof =1 when it found an INDX 
chunk in rm files, and return 0. But when this function was called by audio 
decoding functions, the main loop does not end. The buffer will still try to 
read data from the INDX chunk again and again. Sometimes we are lucky the 
last fill_buffer call is from the video decoding and mplayer quit 
successfully, but this is not true with every files.

here is a almost trivial patch to fix this, if demuxer->stream->eof == 1, then 
never try to fill the buffer anymore.

-- 
Best Regards,
LR
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: text/x-diff
Size: 401 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20060711/cc209fd1/attachment.diff>


More information about the MPlayer-dev-eng mailing list