[MPlayer-dev-eng] [PATCH] Real demuxer: abort when an INDX chunk is found
Moritz Bunkus
moritz at bunkus.org
Wed Mar 24 22:33:50 CET 2004
Hi,
attached patch gets out of demux_real_fill_buffer if an INDX chunk is
encountered instead of the next data packet. If no one objects I'll
apply this on Sunday.
Mosu
--
If Darl McBride was in charge, he'd probably make marriage
unconstitutional too, since clearly it de-emphasizes the commercial
nature of normal human interaction, and probably is a major impediment
to the commercial growth of prostitution. - Linus Torvalds
-------------- next part --------------
Index: demux_real.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_real.c,v
retrieving revision 1.55
diff -u -r1.55 demux_real.c
--- demux_real.c 30 Jan 2004 03:44:00 -0000 1.55
+++ demux_real.c 24 Mar 2004 21:32:34 -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;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20040324/e44c80ec/attachment.pgp>
More information about the MPlayer-dev-eng
mailing list