Commit e13cda8b authored by Petri Hintukainen's avatar Petri Hintukainen

fix bs_skip() at buffer boundary

parent 44f9a66d
......@@ -207,7 +207,7 @@ void bb_skip( BITBUFFER *bb, size_t i_count )
void bs_skip( BITSTREAM *bs, size_t i_count )
{
int left;
size_t bytes = i_count >> 3;
size_t bytes = (i_count + 7) >> 3;
if (bs->bb.p + bytes >= bs->bb.p_end) {
bs->pos = bs->pos + (bs->bb.p - bs->bb.p_start);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment