webpinfo: tolerate ALPH+VP8L

Change-Id: I63cec2d021c0bfaa188017813813bddaadfbeacb
This commit is contained in:
hui su 2017-05-19 14:58:44 -07:00
parent 972104b34b
commit 0d20abb36f

View File

@ -828,8 +828,7 @@ static WebPInfoStatus ProcessImageChunk(const ChunkData* const chunk_data,
} }
if (chunk_data->id_ == CHUNK_VP8L && if (chunk_data->id_ == CHUNK_VP8L &&
webp_info->chunk_counts_[CHUNK_ALPHA]) { webp_info->chunk_counts_[CHUNK_ALPHA]) {
LOG_ERROR("Both VP8L and ALPH chunks are detected."); LOG_WARN("Both VP8L and ALPH chunks are detected.");
return WEBP_INFO_PARSE_ERROR;
} }
if (webp_info->chunk_counts_[CHUNK_ANIM] || if (webp_info->chunk_counts_[CHUNK_ANIM] ||
webp_info->chunk_counts_[CHUNK_ANMF]) { webp_info->chunk_counts_[CHUNK_ANMF]) {