Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(317)

Unified Diff: third_party/libwebp/dec/vp8l_dec.c

Issue 2729473002: libwebp: cherry-pick lossless incremental decoding fix (Closed)
Patch Set: rebase Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/libwebp/README.chromium ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/libwebp/dec/vp8l_dec.c
diff --git a/third_party/libwebp/dec/vp8l_dec.c b/third_party/libwebp/dec/vp8l_dec.c
index ef359a91f0a13d16b1ae11e8e60056fc8d12e61c..ed909c5bdc9fc1537c30c67d399531454cc69aca 100644
--- a/third_party/libwebp/dec/vp8l_dec.c
+++ b/third_party/libwebp/dec/vp8l_dec.c
@@ -1090,6 +1090,7 @@ static int DecodeImageData(VP8LDecoder* const dec, uint32_t* const data,
VP8LFillBitWindow(br);
if (htree_group->use_packed_table) {
code = ReadPackedSymbols(htree_group, br, src);
+ if (br->eos_) break;
if (code == PACKED_NON_LITERAL_CODE) goto AdvanceByOne;
} else {
code = ReadSymbol(htree_group->htrees[GREEN], br);
« no previous file with comments | « third_party/libwebp/README.chromium ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698