fix erroneous dec->status_ setting

We only need to set BITSTREAM_ERROR if !ok.

Change-Id: I5bd13e64797e8bc509477edb29158abb39cb0ee1
This commit is contained in:
Pascal Massimino 2014-09-05 19:48:11 +02:00
parent 80b8099fd8
commit 3fea6a28da

View File

@ -246,7 +246,7 @@ static int ReadHuffmanCodeLengths(
ok = 1; ok = 1;
End: End:
dec->status_ = VP8_STATUS_BITSTREAM_ERROR; if (!ok) dec->status_ = VP8_STATUS_BITSTREAM_ERROR;
return ok; return ok;
} }