aboutsummaryrefslogtreecommitdiff
path: root/graphics/video/qt_decoder.h
diff options
context:
space:
mode:
authorMatthew Hoops2011-01-05 18:06:46 +0000
committerMatthew Hoops2011-01-05 18:06:46 +0000
commit4e05e450c381b6deb9999ec4122c4d9028d510e2 (patch)
treefe89b74f28d0be1f469ee7e788f04d60782b9904 /graphics/video/qt_decoder.h
parent0a8189fd41e3995ba866967b57ea1a0c25b8e94d (diff)
downloadscummvm-rg350-4e05e450c381b6deb9999ec4122c4d9028d510e2.tar.gz
scummvm-rg350-4e05e450c381b6deb9999ec4122c4d9028d510e2.tar.bz2
scummvm-rg350-4e05e450c381b6deb9999ec4122c4d9028d510e2.zip
VIDEO: Mirror QuickTime's mishandling of its own mdat atoms
While the specs say that the 'mdat' ("media data") atom is required in all QuickTime files, QuickTime makes no check if the atom is actually present. This allows for some videos with typos in the atom tag in them to play in QuickTime anyway. The offsets in the 'stco' atom are only used instead. This will fix a video in DS2 Mac and a music file in IHNM Mac (although this is not needed for either just yet). svn-id: r55125
Diffstat (limited to 'graphics/video/qt_decoder.h')
-rw-r--r--graphics/video/qt_decoder.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/graphics/video/qt_decoder.h b/graphics/video/qt_decoder.h
index 144340d6a7..8492d25d73 100644
--- a/graphics/video/qt_decoder.h
+++ b/graphics/video/qt_decoder.h
@@ -213,11 +213,8 @@ private:
const ParseTable *_parseTable;
bool _foundMOOV;
- bool _foundMDAT;
uint32 _timeScale;
uint32 _duration;
- uint32 _mdatOffset;
- uint32 _mdatSize;
MOVStreamContext *_partial;
uint32 _numStreams;
int _ni;
@@ -261,7 +258,6 @@ private:
int readLeaf(MOVatom atom);
int readELST(MOVatom atom);
int readHDLR(MOVatom atom);
- int readMDAT(MOVatom atom);
int readMDHD(MOVatom atom);
int readMOOV(MOVatom atom);
int readMVHD(MOVatom atom);