From 7840cd800d43fa2fab70270196a48025d7b2a31b Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Sun, 14 Aug 2005 10:11:39 +0000 Subject: [PATCH] Another version of the sound STSD atom: v2. Undocumented so far, but let's just skip 68 bytes ahead to the ESDS thingy. --- src/input/r_qtmp4.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/input/r_qtmp4.cpp b/src/input/r_qtmp4.cpp index a23ffc1d3..0770fd763 100644 --- a/src/input/r_qtmp4.cpp +++ b/src/input/r_qtmp4.cpp @@ -836,8 +836,10 @@ qtmp4_reader_c::handle_stsd_atom(qtmp4_demuxer_ptr &new_dmx, if (get_uint16_be(&sv1_stsd.v0.version) == 1) stsd_size = sizeof(sound_v1_stsd_atom_t); - else + else if (get_uint16_be(&sv1_stsd.v0.version) == 0) stsd_size = sizeof(sound_v0_stsd_atom_t); + else if (get_uint16_be(&sv1_stsd.v0.version) == 2) + stsd_size = 68; memcpy(&new_dmx->a_stsd, &sv1_stsd, sizeof(sound_v1_stsd_atom_t));