Remove 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
Review URL: https://codereview.chromium.org/22841005
git-svn-id: http://skia.googlecode.com/svn/trunk@10848 2bbb7eff-a529-9590-31e7-b0007b416f81
1 file changed