From d98185a7880bef510670b4395b24199cb4849d6a Mon Sep 17 00:00:00 2001 From: Mike Melanson Date: Tue, 13 May 2003 03:13:00 +0000 Subject: work around 0-length atoms CVS patchset: 4838 CVS date: 2003/05/13 03:13:00 --- src/demuxers/demux_qt.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/demuxers/demux_qt.c b/src/demuxers/demux_qt.c index ed3a2f99c..02ebdbb19 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.159 2003/05/10 04:26:17 tmmm Exp $ + * $Id: demux_qt.c,v 1.160 2003/05/13 03:13:00 tmmm Exp $ * */ @@ -545,6 +545,9 @@ static void find_moov_atom(input_plugin_t *input, off_t *moov_offset, (atom != FTYP_ATOM)) break; + /* 0 special case-- just skip the atom */ + if (atom_size == 0) + atom_size = 8; /* 64-bit length special case */ if (atom_size == 1) { if (input->read(input, atom_preamble, ATOM_PREAMBLE_SIZE) != -- cgit v1.2.3