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; }