diff options
-rw-r--r-- | src/codec/SkCodec.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/codec/SkCodec.cpp b/src/codec/SkCodec.cpp index 9b0feae78f..d557087c01 100644 --- a/src/codec/SkCodec.cpp +++ b/src/codec/SkCodec.cpp @@ -25,7 +25,8 @@ SkCodec* SkCodec::NewFromStream(SkStream* stream) { if (!stream) { return NULL; } - for (DecoderProc proc : gDecoderProcs) { + for (uint32_t i = 0; i < SK_ARRAY_COUNT(gDecoderProcs); i++) { + DecoderProc proc = gDecoderProcs[i]; const bool correctFormat = proc.IsFormat(stream); if (!stream->rewind()) { return NULL; |