webpmux: tolerate false positive Alpha flag

Change-Id: I390aebdda31f5320e83b7d7012735947a234650b
This commit is contained in:
hui su
2017-05-19 11:26:37 -07:00
parent dd7e83cca7
commit 972104b34b
2 changed files with 18 additions and 2 deletions

View File

@@ -270,6 +270,9 @@ WebPMux* WebPMuxCreateInternal(const WebPData* bitstream, int copy_data,
ChunkInit(&chunk);
}
// Incomplete image.
if (wpi->is_partial_) goto Err;
// Validate mux if complete.
if (MuxValidate(mux) != WEBP_MUX_OK) goto Err;