mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-12 03:56:20 +00:00
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:
parent
d64c94c6dd
commit
704d1d0211
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user