diff options
author | Torbjörn Andersson | 2018-03-25 07:37:49 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2018-04-07 10:03:50 +0200 |
commit | 4702681be2f5a1e3655f01dfb285e653400b3601 (patch) | |
tree | 1859cf57d95d46094104f3fa61f7a7195f0c9e8e /image/codecs/cinepak.h | |
parent | 7f6d431fe301d52d927f4c5b00bc43701c41a2de (diff) | |
download | scummvm-rg350-4702681be2f5a1e3655f01dfb285e653400b3601.tar.gz scummvm-rg350-4702681be2f5a1e3655f01dfb285e653400b3601.tar.bz2 scummvm-rg350-4702681be2f5a1e3655f01dfb285e653400b3601.zip |
IMAGE: Explicitly initialize CinePak codebooks
Starship Titanic produces lots of "uninitialized value" warnings
at the very beginning of the game, when turning right. This is
because in the very first movie frame it uses codebooks that have
not been loaded. Explicitly set their data to 0 to guarantee
consistent behavior.
Diffstat (limited to 'image/codecs/cinepak.h')
-rw-r--r-- | image/codecs/cinepak.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/image/codecs/cinepak.h b/image/codecs/cinepak.h index 4efb1191cc..3b0fe477a6 100644 --- a/image/codecs/cinepak.h +++ b/image/codecs/cinepak.h @@ -94,6 +94,7 @@ private: byte *_colorMap; DitherType _ditherType; + void initializeCodebook(uint16 strip, byte codebookType); void loadCodebook(Common::SeekableReadStream &stream, uint16 strip, byte codebookType, byte chunkID, uint32 chunkSize); void decodeVectors(Common::SeekableReadStream &stream, uint16 strip, byte chunkID, uint32 chunkSize); |