Index: core/src/fxcodec/codec/fx_codec_flate.cpp |
diff --git a/core/src/fxcodec/codec/fx_codec_flate.cpp b/core/src/fxcodec/codec/fx_codec_flate.cpp |
index c02f0977cf858c94fb25c1c20da837f445739984..fef4815494f747dd72320d2283ca99e91ad56fd8 100644 |
--- a/core/src/fxcodec/codec/fx_codec_flate.cpp |
+++ b/core/src/fxcodec/codec/fx_codec_flate.cpp |
@@ -409,6 +409,7 @@ static void PNG_Predictor(FX_LPBYTE& data_buf, FX_DWORD& data_size, |
byte_cnt += move_size + 1; |
continue; |
} |
+ byte_cnt++; |
Tom Sepez
2014/08/15 16:51:30
nit: As I read this, it would make more sense to m
Bo Xu
2014/08/15 18:08:10
If put byte_cnt++ on line 401, then when tag==0, l
Tom Sepez
2014/08/15 19:02:12
Yep. Good catch.
|
for (int byte = 0; byte < row_size && byte_cnt < (int)data_size; byte ++) { |
FX_BYTE raw_byte = pSrcData[byte + 1]; |
switch (tag) { |
@@ -464,7 +465,6 @@ static void PNG_Predictor(FX_LPBYTE& data_buf, FX_DWORD& data_size, |
} |
pSrcData += row_size + 1; |
pDestData += row_size; |
- byte_cnt++; |
} |
FX_Free(data_buf); |
data_buf = dest_buf; |