DescriptionRemove dependency on getLength from webp decoder.
In webp_parse_header, continue reading until end of stream is reached,
or we have read WEBP_VP8_HEADER_SIZE bytes. Do not check to see if the
stream was too short, since it may not have a way to report its length,
and WEBP_VP8_HEADER_SIZE is padded slightly. Instead, depend on
WebPGetFeatures to report that the stream did not have enough data.
In webp_idecode, only check length if it is available.
BUG=https://b.corp.google.com/issue?id=8432093
R=djsollen@google.com, vikasa@google.com
Committed: https://code.google.com/p/skia/source/detail?r=10848
Patch Set 1 #
Total comments: 6
Patch Set 2 : Check for eof if no bytes are read. #Messages
Total messages: 12 (0 generated)
|