summaryrefslogtreecommitdiffstats
path: root/libmpdemux/demux_real.c
diff options
context:
space:
mode:
authorUoti Urpala <uau@glyph.nonexistent.invalid>2009-07-07 02:06:48 +0300
committerUoti Urpala <uau@glyph.nonexistent.invalid>2009-07-07 02:07:11 +0300
commit6d908205fbadbdf7ccdc6c5e0eb918f0b43f16e0 (patch)
tree09a6acada909bd5d070ace54209cadeae66d15cf /libmpdemux/demux_real.c
parente306174952d42e1cd6cc5efc50ae6bb0410501bc (diff)
parenteafe5b7517bbf408ae1ffc936a3abe2313c3b334 (diff)
downloadmpv-6d908205fbadbdf7ccdc6c5e0eb918f0b43f16e0.tar.bz2
mpv-6d908205fbadbdf7ccdc6c5e0eb918f0b43f16e0.tar.xz
Merge svn changes up to r29304
Diffstat (limited to 'libmpdemux/demux_real.c')
-rw-r--r--libmpdemux/demux_real.c56
1 files changed, 35 insertions, 21 deletions
diff --git a/libmpdemux/demux_real.c b/libmpdemux/demux_real.c
index 5c4497e4e5..eb4af6280b 100644
--- a/libmpdemux/demux_real.c
+++ b/libmpdemux/demux_real.c
@@ -1,24 +1,38 @@
/*
- Real parser & demuxer
-
- (C) Alex Beregszaszi
- (C) 2005, 2006 Roberto Togni
-
- Based on FFmpeg's libav/rm.c.
-
-Audio codecs: (supported by RealPlayer8 for Linux)
- DNET - RealAudio 3.0, really it's AC3 in swapped-byteorder
- SIPR - SiproLab's audio codec, ACELP decoder working with MPlayer,
- needs fine-tuning too :)
- ATRC - RealAudio 8 (ATRAC3) - www.minidisc.org/atrac3_article.pdf,
- ACM decoder uploaded, needs some fine-tuning to work
- -> RealAudio 8
- COOK/COKR - Real Cooker -> RealAudio G2
-
-Video codecs: (supported by RealPlayer8 for Linux)
- RV10 - H.263 based, working with libavcodec's decoder
- RV20-RV40 - using RealPlayer's codec plugins
-*/
+ * Real parser & demuxer
+ * copyright (C) 2001 Alex Beregszaszi
+ * copyright (C) 2005, 2006 Roberto Togni
+ * based on FFmpeg's libav/rm.c
+ *
+ * audio codecs: (supported by RealPlayer8 for Linux)
+ * DNET - RealAudio 3.0, really it's AC3 in swapped-byteorder
+ * SIPR - SiproLab's audio codec, ACELP decoder working with MPlayer,
+ * needs fine-tuning too :)
+ * ATRC - RealAudio 8 (ATRAC3) - www.minidisc.org/atrac3_article.pdf,
+ * ACM decoder uploaded, needs some fine-tuning to work
+ * -> RealAudio 8
+ * COOK/COKR - Real Cooker -> RealAudio G2
+ *
+ * video codecs: (supported by RealPlayer8 for Linux)
+ * RV10 - H.263 based, working with libavcodec's decoder
+ * RV20-RV40 - using RealPlayer's codec plugins
+ *
+ * This file is part of MPlayer.
+ *
+ * MPlayer is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * MPlayer is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with MPlayer; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
#include <stdio.h>
#include <stdlib.h>
@@ -1113,7 +1127,7 @@ static demuxer_t* demux_open_real(demuxer_t* demuxer)
mp_msg(MSGT_DEMUX,MSGL_V, "Chunk: %.4s (%x) (size: 0x%x, offset: 0x%x)\n",
(char *)&chunk_id, chunk_id, chunk_size, chunk_pos);
- if (chunk_size < 10){
+ if (chunk_id != MKTAG('D', 'A', 'T', 'A') && chunk_size < 10){
mp_msg(MSGT_DEMUX,MSGL_ERR,"demux_real: invalid chunksize! (%d)\n",chunk_size);
break; //return;
}