mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-27 06:08:21 +01:00
fix erroneous dec->status_ setting
We only need to set BITSTREAM_ERROR if !ok.
(cherry picked from commit 3fea6a28da
)
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:
|
End:
|
||||||
VP8LHuffmanTreeFree(&tree);
|
VP8LHuffmanTreeFree(&tree);
|
||||||
|
if (!ok) dec->status_ = VP8_STATUS_BITSTREAM_ERROR;
|
||||||
return ok;
|
return ok;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user