Commit 5664a457 by Rudolf

Reset bit pos only if it was max

This allows custom use by moving the start of bit reading.
parent b1f0aff0
Showing with 1 additions and 0 deletions
......@@ -120,6 +120,7 @@ bb_read (struct BIT_BUFFER *buffer, int size)
if (!(fread (&(buffer->bits), sizeof (byte), 1, buffer->fp)))
return NULL;
buffer->first_read = 1;
if (buffer->pos == BYTE_BIT)
buffer->pos = 0;
}
......
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 sign in to comment