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:
Pascal Massimino 2014-09-05 19:48:11 +02:00 committed by James Zern
parent 5692eae1f3
commit e6609ac6b9

View File

@ -234,6 +234,7 @@ static int ReadHuffmanCodeLengths(
End:
VP8LHuffmanTreeFree(&tree);
if (!ok) dec->status_ = VP8_STATUS_BITSTREAM_ERROR;
return ok;
}