From aa7736b67fae09ddc12f0e771e439c634318ecf0 Mon Sep 17 00:00:00 2001 From: Thibaut Mattern Date: Sat, 16 Oct 2004 10:38:14 +0000 Subject: Mace decoder hack fix castaway.mov crash. CVS patchset: 7040 CVS date: 2004/10/16 10:38:14 --- src/demuxers/demux_qt.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/demuxers/demux_qt.c b/src/demuxers/demux_qt.c index 9f9099220..0c97ae9c5 100644 --- a/src/demuxers/demux_qt.c +++ b/src/demuxers/demux_qt.c @@ -30,7 +30,7 @@ * build_frame_table * free_qt_info * - * $Id: demux_qt.c,v 1.192 2004/09/11 20:01:39 jstembridge Exp $ + * $Id: demux_qt.c,v 1.193 2004/10/16 10:38:14 tmattern Exp $ * */ @@ -2356,6 +2356,13 @@ static int demux_qt_send_chunk(demux_plugin_t *this_gen) { return this->status; remaining_sample_bytes = audio_trak->frames[i].size; + + /* HACK: MAC3 and MAC6 have wrong frame size */ + if (audio_trak->properties->audio.codec_buftype == BUF_AUDIO_MAC3) + remaining_sample_bytes /= 3; + else if (audio_trak->properties->audio.codec_buftype == BUF_AUDIO_MAC6) + remaining_sample_bytes /= 6; + this->input->seek(this->input, audio_trak->frames[i].offset, SEEK_SET); -- cgit v1.2.3