diff options
-rw-r--r-- | image/codecs/cinepak.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/image/codecs/cinepak.cpp b/image/codecs/cinepak.cpp index 4e858921ee..2b02fc8127 100644 --- a/image/codecs/cinepak.cpp +++ b/image/codecs/cinepak.cpp @@ -260,7 +260,7 @@ private: } static inline byte getRGBLookupEntry(const byte *colorMap, uint16 index) { - return colorMap[s_defaultPaletteLookup[CLIP<int>(index, 0, 1024)]]; + return colorMap[s_defaultPaletteLookup[CLIP<int>(index, 0, 1023)]]; } }; |