From 503bdcda6ee5087f28416d31502118fbe550f63a Mon Sep 17 00:00:00 2001 From: Mike Klein Date: Wed, 1 Nov 2017 08:34:15 -0400 Subject: [PATCH] fix typo in SkJpegCodec.cpp The missing break rejects grayscale profiles for grayscale images. Change-Id: I16ad8e7b581f009257a47c4e0f45f7b3c0008487 Reviewed-on: https://skia-review.googlesource.com/66140 Reviewed-by: Mike Klein Commit-Queue: Mike Klein --- src/codec/SkJpegCodec.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/codec/SkJpegCodec.cpp b/src/codec/SkJpegCodec.cpp index a6c2549141..f69a0b8616 100644 --- a/src/codec/SkJpegCodec.cpp +++ b/src/codec/SkJpegCodec.cpp @@ -243,6 +243,7 @@ SkCodec::Result SkJpegCodec::ReadHeader(SkStream* stream, SkCodec** codecOut, { colorSpace = nullptr; } + break; default: if (colorSpace->type() != SkColorSpace::kRGB_Type) { colorSpace = nullptr;