aboutsummaryrefslogtreecommitdiff
path: root/image/codecs/codec.cpp
diff options
context:
space:
mode:
authorColin Snover2017-01-08 23:12:05 -0600
committerColin Snover2017-01-11 10:59:55 -0600
commit7b90f0693ab04dd2d03c097a4a49858f3685a75f (patch)
treec334b8839d2004cc5982dcf84b9d20411b00b46b /image/codecs/codec.cpp
parent68de00b36727424c2ea6c1a2d078288659492ab3 (diff)
downloadscummvm-rg350-7b90f0693ab04dd2d03c097a4a49858f3685a75f.tar.gz
scummvm-rg350-7b90f0693ab04dd2d03c097a4a49858f3685a75f.tar.bz2
scummvm-rg350-7b90f0693ab04dd2d03c097a4a49858f3685a75f.zip
IMAGE: Return correct pixel format for Indeo3
This gives Indeo3 the same behavior as other codecs when encapsulated in a container that provides bit depth information (e.g. AVI). Closes #888.
Diffstat (limited to 'image/codecs/codec.cpp')
-rw-r--r--image/codecs/codec.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/image/codecs/codec.cpp b/image/codecs/codec.cpp
index 7d6d3cbe9b..048d52dc86 100644
--- a/image/codecs/codec.cpp
+++ b/image/codecs/codec.cpp
@@ -210,7 +210,7 @@ Codec *createBitmapCodec(uint32 tag, int width, int height, int bitsPerPixel) {
case MKTAG('c','v','i','d'):
return new CinepakDecoder(bitsPerPixel);
case MKTAG('I','V','3','2'):
- return new Indeo3Decoder(width, height);
+ return new Indeo3Decoder(width, height, bitsPerPixel);
case MKTAG('I', 'V', '4', '1'):
case MKTAG('I', 'V', '4', '2'):
return new Indeo4Decoder(width, height, bitsPerPixel);