mirror of
https://github.com/webmproject/libwebp.git
synced 2025-01-31 00:55:07 +01:00
fix erroneous dec->status_ setting
We only need to set BITSTREAM_ERROR if !ok. (cherry picked from commit 3fea6a28dafe8b326b0e407bd36b22a72e32f8b0) Conflicts: src/dec/vp8l.c Change-Id: I5bd13e64797e8bc509477edb29158abb39cb0ee1
This commit is contained in:
parent
5692eae1f3
commit
e6609ac6b9
@ -234,6 +234,7 @@ static int ReadHuffmanCodeLengths(
|
||||
|
||||
End:
|
||||
VP8LHuffmanTreeFree(&tree);
|
||||
if (!ok) dec->status_ = VP8_STATUS_BITSTREAM_ERROR;
|
||||
return ok;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user