From e6609ac6b97b64f1a44bee8b287f5e687b71a04d Mon Sep 17 00:00:00 2001 From: Pascal Massimino Date: Fri, 5 Sep 2014 19:48:11 +0200 Subject: [PATCH] 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 --- src/dec/vp8l.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/dec/vp8l.c b/src/dec/vp8l.c index 81cf99fc..61f36216 100644 --- a/src/dec/vp8l.c +++ b/src/dec/vp8l.c @@ -234,6 +234,7 @@ static int ReadHuffmanCodeLengths( End: VP8LHuffmanTreeFree(&tree); + if (!ok) dec->status_ = VP8_STATUS_BITSTREAM_ERROR; return ok; }