mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-27 22:28:22 +01:00
clarify the logic of the error path when decoding fails.
Change-Id: I2f86751ddafa4708dac3ffc9d6ec1f156e027a83
This commit is contained in:
parent
8aa352b256
commit
6ec0d2a946
@ -512,11 +512,11 @@ static VP8StatusCode DecodeInto(const uint8_t* const data, size_t data_size,
|
|||||||
|
|
||||||
if (status != VP8_STATUS_OK) {
|
if (status != VP8_STATUS_OK) {
|
||||||
WebPFreeDecBuffer(params->output);
|
WebPFreeDecBuffer(params->output);
|
||||||
}
|
} else {
|
||||||
|
|
||||||
if (params->options != NULL && params->options->flip) {
|
if (params->options != NULL && params->options->flip) {
|
||||||
status = WebPFlipBuffer(params->output);
|
status = WebPFlipBuffer(params->output);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user