clarify the logic of the error path when decoding fails.

Change-Id: I2f86751ddafa4708dac3ffc9d6ec1f156e027a83
This commit is contained in:
Pascal Massimino 2016-02-18 14:58:18 +01:00
parent 8aa352b256
commit 6ec0d2a946

View File

@ -512,11 +512,11 @@ static VP8StatusCode DecodeInto(const uint8_t* const data, size_t data_size,
if (status != VP8_STATUS_OK) {
WebPFreeDecBuffer(params->output);
}
} else {
if (params->options != NULL && params->options->flip) {
status = WebPFlipBuffer(params->output);
}
}
return status;
}