aboutsummaryrefslogtreecommitdiff
path: root/image
diff options
context:
space:
mode:
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;