diff options
Diffstat (limited to 'core/fxcodec')
-rw-r--r-- | core/fxcodec/lgif/fx_gif.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fxcodec/lgif/fx_gif.cpp b/core/fxcodec/lgif/fx_gif.cpp index b996ba9796..b509c8ccfd 100644 --- a/core/fxcodec/lgif/fx_gif.cpp +++ b/core/fxcodec/lgif/fx_gif.cpp @@ -118,7 +118,7 @@ int32_t CGifLZWDecoder::Decode(uint8_t* des_buf, uint32_t& des_size) { if (code == code_clear) { ClearTable(); continue; - } else if (code == code_end) { + } else if (code >= code_end) { des_size = i; return 1; } else { |