Mercurial > mplayer.hg
changeset 12992:0945a0a7ed98
do not attempt to seek backward in stream on MDPR chunk with no codec data
author | reimar |
---|---|
date | Tue, 10 Aug 2004 20:13:44 +0000 |
parents | 2d678d3c00fa |
children | 8953c51668e1 |
files | libmpdemux/demux_real.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/demux_real.c Tue Aug 10 17:02:02 2004 +0000 +++ b/libmpdemux/demux_real.c Tue Aug 10 20:13:44 2004 +0000 @@ -1044,6 +1044,11 @@ codec_data_size = stream_read_dword(demuxer->stream); codec_pos = stream_tell(demuxer->stream); + if (!codec_data_size) { + mp_msg(MSGT_DEMUX,MSGL_DBG2,"demux_real: no codec data in MDPR chunk at fpos=0x%X\n", codec_pos); + break; + } + tmp = stream_read_dword(demuxer->stream); mp_msg(MSGT_DEMUX,MSGL_DBG2,"demux_real: type_spec: len=%d fpos=0x%X first_dword=0x%X (%.4s) \n",