Mercurial > mplayer.hg
changeset 12076:1309695bcdf4
Stop reading the file if an INDX chunk is found instead of a data packet.
author | mosu |
---|---|
date | Sun, 28 Mar 2004 11:23:53 +0000 |
parents | 38e6ec59815b |
children | e200b0e11e9c |
files | libmpdemux/demux_real.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/demux_real.c Sat Mar 27 20:19:57 2004 +0000 +++ b/libmpdemux/demux_real.c Sun Mar 28 11:23:53 2004 +0000 @@ -528,6 +528,9 @@ demuxer->filepos = stream_tell(demuxer->stream); version = stream_read_word(demuxer->stream); /* version */ len = stream_read_word(demuxer->stream); + } else if ((version == 0x494e) && (len == 0x4458)) { + mp_msg(MSGT_DEMUX,MSGL_V,"demux_real: Found INDX chunk. EOF.\n"); + return 0; }