MTROPOLIS: Fix crash - correct movie chunk offset

Fixes a typo introduced in PR#5378 which used the wrong value as the chunk
offset.
This commit is contained in:
Matthew Duggan 2023-11-25 09:37:51 +11:00
parent d64c94c6dd
commit 704d1d0211

View File

@ -645,7 +645,7 @@ void MovieElement::activate() {
Common::SafeSeekableSubReadStream *movieDataStream;
if (movieAsset->getMovieDataSize() > 0) {
qtDecoder->setChunkBeginOffset(movieAsset->getMoovAtomPos());
qtDecoder->setChunkBeginOffset(movieAsset->getMovieDataPos());
movieDataStream = new Common::SafeSeekableSubReadStream(stream, movieAsset->getMovieDataPos(), movieAsset->getMovieDataPos() + movieAsset->getMovieDataSize(), DisposeAfterUse::NO);
} else {
// If no data size, the movie data is all over the file and the MOOV atom may be after it.