aboutsummaryrefslogtreecommitdiff
path: root/image
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2016-02-20 22:29:15 +0100
committerWillem Jan Palenstijn2016-02-20 22:33:05 +0100
commita67e8a61dcb367e787aaee39d24caba30f451704 (patch)
tree079c376ab3dabe278d225030a735fceb0b729917 /image
parent9362bde2ccec788725ab2fe94959661b12d3cfd9 (diff)
downloadscummvm-rg350-a67e8a61dcb367e787aaee39d24caba30f451704.tar.gz
scummvm-rg350-a67e8a61dcb367e787aaee39d24caba30f451704.tar.bz2
scummvm-rg350-a67e8a61dcb367e787aaee39d24caba30f451704.zip
VIDEO: Add warning for potential unaligned writes
Diffstat (limited to 'image')
-rw-r--r--image/codecs/indeo3.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/image/codecs/indeo3.cpp b/image/codecs/indeo3.cpp
index d414de31d1..560658d1f5 100644
--- a/image/codecs/indeo3.cpp
+++ b/image/codecs/indeo3.cpp
@@ -391,6 +391,11 @@ void Indeo3Decoder::decodeChunk(byte *cur, byte *ref, int width, int height,
int rle_v1, rle_v2, rle_v3;
uint16 res;
+ if ((width & 3) != 0) {
+ // This isn't a valid width according to http://wiki.multimedia.cx/index.php?title=Indeo_3
+ warning("Indeo3 file with width not divisible by 4. This will cause unaligned writes");
+ }
+
bit_buf = 0;
ref_vectors = NULL;