libwebp: port lossless incremental decoding fix
f8fad4fa lossless incremental decoding: fix missing eos_ test use if (br->eos_) break; as this snapshot does not contain: 16be192f VP8LSetBitPos: remove the eos_ setting original commit message: The patch 21735e0 introduced a bug where a goto path was not testing the eos_ state. If this happened just before a row_sync, a SaveState() would be called that would store the eos_ state as '1' till the end of the loop. This usually was not a problem, except for the very last chunk where we disable the incremental decoding altogether (we have all the data). The termination tests were then going wrong. The fix is to add a proper eos_ test and avoid falling in this inconsistent state. (https://chromium.googlesource.com/webm/libwebp/+/21735e06f7c1cb35562754e7f54365f24124ef15) BUG=webp:332 Review-Url: https://codereview.chromium.org/2729473002 Cr-Commit-Position: refs/heads/master@{#455989}
Showing
Please register or sign in to comment