mirror of
https://github.com/webmproject/libwebp.git
synced 2025-02-13 07:22:52 +01:00
Merge "Lossless decoding: Remove an unnecessary if condition."
This commit is contained in:
commit
1d575ccd4e
@ -1073,12 +1073,13 @@ static int DecodeImageData(VP8LDecoder* const dec, uint32_t* const data,
|
|||||||
process_func(dec, row);
|
process_func(dec, row);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (src < src_end) {
|
// Because of the check done above (before 'src' was incremented by
|
||||||
if (col & mask) htree_group = GetHtreeGroupForPos(hdr, col, row);
|
// 'length'), the following holds true.
|
||||||
if (color_cache != NULL) {
|
assert(src <= src_end);
|
||||||
while (last_cached < src) {
|
if (col & mask) htree_group = GetHtreeGroupForPos(hdr, col, row);
|
||||||
VP8LColorCacheInsert(color_cache, *last_cached++);
|
if (color_cache != NULL) {
|
||||||
}
|
while (last_cached < src) {
|
||||||
|
VP8LColorCacheInsert(color_cache, *last_cached++);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (code < color_cache_limit) { // Color cache
|
} else if (code < color_cache_limit) { // Color cache
|
||||||
|
Loading…
x
Reference in New Issue
Block a user