diff --git a/src/dec/webp.c b/src/dec/webp.c index 952178fa..b6ed9c9a 100644 --- a/src/dec/webp.c +++ b/src/dec/webp.c @@ -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; }