> Check that the buffer is correctly allocated with > FF_INPUT_BUFFER_PADDING_SIZE which is needed when get_bits is used. Thanks!! The code that allocates buffer and does all that stuff wasn't written by me, so, most likely the other guy missed that requirement.