Update VP8DX_BOOL_DECODER_FILL to better detect EOS
authorJohn Koleszar <jkoleszar@google.com>
Tue, 26 Apr 2011 16:36:03 +0000 (12:36 -0400)
committerJohn Koleszar <jkoleszar@google.com>
Wed, 27 Apr 2011 14:24:39 +0000 (10:24 -0400)
commit9594370e0cdc6a35ee3254994fb05204e99449b5
tree0cdd905646a0dcccaaeaa639a99641ac5abb92d0
parentd5c46bdfc0d7bcc25e3ff549a0dc03d759050c19
Update VP8DX_BOOL_DECODER_FILL to better detect EOS

Allow more reliable detection of truncated bitstreams by being more
precise with the count of "virtual" bits in the value buffer.
Specifically, the VP8_LOTS_OF_BITS value is accumulated into count,
rather than being assigned, which was losing the prior value,
increasing the required tolerance when testing for the error condition.

Change-Id: Ib5172eaa57323b939c439fff8a8ab5fa38da9b69
vp8/decoder/dboolhuff.h