From 3fea6a28dafe8b326b0e407bd36b22a72e32f8b0 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. Change-Id: I5bd13e64797e8bc509477edb29158abb39cb0ee1 --- src/dec/vp8l.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dec/vp8l.c b/src/dec/vp8l.c index d3022407..c538954d 100644 --- a/src/dec/vp8l.c +++ b/src/dec/vp8l.c @@ -246,7 +246,7 @@ static int ReadHuffmanCodeLengths( ok = 1; End: - dec->status_ = VP8_STATUS_BITSTREAM_ERROR; + if (!ok) dec->status_ = VP8_STATUS_BITSTREAM_ERROR; return ok; }