mirror of
https://github.com/webmproject/libwebp.git
synced 2025-02-13 15:32:53 +01:00
fix erroneous dec->status_ setting
We only need to set BITSTREAM_ERROR if !ok. Change-Id: I5bd13e64797e8bc509477edb29158abb39cb0ee1
This commit is contained in:
parent
80b8099fd8
commit
3fea6a28da
@ -246,7 +246,7 @@ static int ReadHuffmanCodeLengths(
|
|||||||
ok = 1;
|
ok = 1;
|
||||||
|
|
||||||
End:
|
End:
|
||||||
dec->status_ = VP8_STATUS_BITSTREAM_ERROR;
|
if (!ok) dec->status_ = VP8_STATUS_BITSTREAM_ERROR;
|
||||||
return ok;
|
return ok;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user