[Scummvm-git-logs] scummvm master -> 22025e67a08ab7ac5becaedd753af70a177e75a0

sev- noreply at scummvm.org
Wed Aug 12 11:31:45 UTC 2026


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

Summary:
22025e67a0 VIDEO: QT: Do not crash in case video codec was not found


Commit: 22025e67a08ab7ac5becaedd753af70a177e75a0
    https://github.com/scummvm/scummvm/commit/22025e67a08ab7ac5becaedd753af70a177e75a0
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2026-08-12T13:31:02+02:00

Commit Message:
VIDEO: QT: Do not crash in case video codec was not found

Changed paths:
    video/qt_decoder.cpp


diff --git a/video/qt_decoder.cpp b/video/qt_decoder.cpp
index ecdacc36301..b8fdbae57c9 100644
--- a/video/qt_decoder.cpp
+++ b/video/qt_decoder.cpp
@@ -485,6 +485,9 @@ uint16 QuickTimeDecoder::VideoTrackHandler::getHeight() const {
 }
 
 Graphics::PixelFormat QuickTimeDecoder::VideoTrackHandler::getPixelFormat() const {
+	if (!((VideoSampleDesc *)_parent->sampleDescs[0])->_videoCodec)
+		return Graphics::PixelFormat::createFormatCLUT8(); // Safe fallback
+
 	// TODO: What should happen if there are multiple codecs with different formats?
 	return ((VideoSampleDesc *)_parent->sampleDescs[0])->_videoCodec->getPixelFormat();
 }




More information about the Scummvm-git-logs mailing list