[Scummvm-git-logs] scummvm master -> 704d1d021125333d1d620d0845e3464fb6d552b8

mduggan noreply at scummvm.org
Fri Nov 24 22:39:31 UTC 2023


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
704d1d0211 MTROPOLIS: Fix crash - correct movie chunk offset


Commit: 704d1d021125333d1d620d0845e3464fb6d552b8
    https://github.com/scummvm/scummvm/commit/704d1d021125333d1d620d0845e3464fb6d552b8
Author: Matthew Duggan (mgithub at guarana.org)
Date: 2023-11-25T09:37:51+11:00

Commit Message:
MTROPOLIS: Fix crash - correct movie chunk offset

Fixes a typo introduced in PR#5378 which used the wrong value as the chunk
offset.

Changed paths:
    engines/mtropolis/elements.cpp


diff --git a/engines/mtropolis/elements.cpp b/engines/mtropolis/elements.cpp
index 9bbb185ec36..83ac0f18596 100644
--- a/engines/mtropolis/elements.cpp
+++ b/engines/mtropolis/elements.cpp
@@ -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.




More information about the Scummvm-git-logs mailing list