Never send VP8_STATUS_SUSPENDED back in non-incremental.

Add the incremental_ member to the internal VP8Decoder,
to mimic VP8LDecoder

Change-Id: I34842e473bb566f51c18fe42afda63e66c0185b6
This commit is contained in:
Vincent Rabaud
2023-09-18 16:39:46 +02:00
parent dce8397fec
commit 35e197bdb7
3 changed files with 14 additions and 8 deletions

View File

@ -326,6 +326,7 @@ static VP8StatusCode DecodeWebPHeaders(WebPIDecoder* const idec) {
idec->is_lossless_ = headers.is_lossless;
if (!idec->is_lossless_) {
VP8Decoder* const dec = VP8New();
dec->incremental_ = 1;
if (dec == NULL) {
return VP8_STATUS_OUT_OF_MEMORY;
}