summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Melanson <mike@multimedia.cx>2003-05-13 03:13:00 +0000
committerMike Melanson <mike@multimedia.cx>2003-05-13 03:13:00 +0000
commitd98185a7880bef510670b4395b24199cb4849d6a (patch)
tree3b572b4611a39ea24e277cbd2845d7b795b12fe8 /src
parent0ed6b6e13d25356666049b64cec45ecd4274bd1d (diff)
downloadxine-lib-d98185a7880bef510670b4395b24199cb4849d6a.tar.gz
xine-lib-d98185a7880bef510670b4395b24199cb4849d6a.tar.bz2
work around 0-length atoms
CVS patchset: 4838 CVS date: 2003/05/13 03:13:00
Diffstat (limited to 'src')
-rw-r--r--src/demuxers/demux_qt.c5
1 files changed, 4 insertions, 1 deletions
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) !=