aboutsummaryrefslogtreecommitdiff
path: root/image/jpeg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'image/jpeg.cpp')
-rw-r--r--image/jpeg.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/image/jpeg.cpp b/image/jpeg.cpp
index 2975cb1342..89e40ddf05 100644
--- a/image/jpeg.cpp
+++ b/image/jpeg.cpp
@@ -268,6 +268,8 @@ bool JPEGDecoder::loadStream(Common::SeekableReadStream &stream) {
case kColorSpaceYUV:
cinfo.out_color_space = JCS_YCbCr;
break;
+ default:
+ break;
}
// Actually start decompressing the image
@@ -290,6 +292,8 @@ bool JPEGDecoder::loadStream(Common::SeekableReadStream &stream) {
// This is pretty ugly since our PixelFormat cannot express YUV...
_surface.create(cinfo.output_width, cinfo.output_height, Graphics::PixelFormat(3, 0, 0, 0, 0, 0, 0, 0, 0));
break;
+ default:
+ break;
}
// Allocate buffer for one scanline