Mercurial > mplayer.hg
changeset 22586:93589138bb33
Check for eof in loop searching for data chunk.
Fixes bug #775.
author | reimar |
---|---|
date | Thu, 15 Mar 2007 10:38:51 +0000 |
parents | 98a00e3b8a65 |
children | e0a6fb06f058 |
files | libmpdemux/demux_audio.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/demux_audio.c Thu Mar 15 09:19:30 2007 +0000 +++ b/libmpdemux/demux_audio.c Thu Mar 15 10:38:51 2007 +0000 @@ -453,7 +453,7 @@ chunk_size = stream_read_dword_le(demuxer->stream); if (chunk_type != mmioFOURCC('d', 'a', 't', 'a')) stream_skip(demuxer->stream, chunk_size); - } while (chunk_type != mmioFOURCC('d', 'a', 't', 'a')); + } while (!s->eof && chunk_type != mmioFOURCC('d', 'a', 't', 'a')); demuxer->movi_start = stream_tell(s); demuxer->movi_end = chunk_size ? demuxer->movi_start + chunk_size : s->end_pos; // printf("wav: %X .. %X\n",(int)demuxer->movi_start,(int)demuxer->movi_end);