diff options
author | Matthew Hoops | 2012-09-09 13:47:40 -0400 |
---|---|---|
committer | Matthew Hoops | 2012-09-09 13:47:40 -0400 |
commit | 4a458236f625d28706cfe4560690770a395ee6e3 (patch) | |
tree | 556e0ba7d6fbd3b6cc35138f6bf2b873e464d604 /common/quicktime.cpp | |
parent | 72a1140d572ce46a820cddb6ac85b748cb7a066d (diff) | |
download | scummvm-rg350-4a458236f625d28706cfe4560690770a395ee6e3.tar.gz scummvm-rg350-4a458236f625d28706cfe4560690770a395ee6e3.tar.bz2 scummvm-rg350-4a458236f625d28706cfe4560690770a395ee6e3.zip |
COMMON: Make QuickTimeParser::readSampleDesc take the desc size
Diffstat (limited to 'common/quicktime.cpp')
-rw-r--r-- | common/quicktime.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/quicktime.cpp b/common/quicktime.cpp index 5ac9bee40f..5b3659b0d5 100644 --- a/common/quicktime.cpp +++ b/common/quicktime.cpp @@ -544,7 +544,7 @@ int QuickTimeParser::readSTSD(Atom atom) { _fd->readUint16BE(); // reserved _fd->readUint16BE(); // index - track->sampleDescs[i] = readSampleDesc(track, format); + track->sampleDescs[i] = readSampleDesc(track, format, size - 16); debug(0, "size=%d 4CC= %s codec_type=%d", size, tag2str(format), track->codecType); |