cwebp: fix metadata output w/lossy+alpha

Change-Id: Ic96da6523fc73a7b67c68ef8a4c9d12081f8a535
This commit is contained in:
James Zern 2013-12-19 10:17:08 -08:00
parent ad26df1a05
commit b5b2e3c7f5

View File

@ -494,6 +494,7 @@ static int WriteWebPWithMetadata(FILE* const out,
if (has_vp8x) { // update the existing VP8X flags
webp[kChunkHeaderSize] |= (uint8_t)(flags & 0xff);
ok = ok && (fwrite(webp, kVP8XChunkSize, 1, out) == 1);
webp += kVP8XChunkSize;
webp_size -= kVP8XChunkSize;
} else {
const int is_lossless = !memcmp(webp, "VP8L", kTagSize);