Commit 9204d795 authored by Petri Hintukainen's avatar Petri Hintukainen

bits: negative skips are not implemented

parent 9e8f0a2d
......@@ -182,7 +182,7 @@ uint32_t bs_read( BITSTREAM *bs, int i_count )
return bb_read(&bs->bb, i_count);
}
void bb_skip( BITBUFFER *bb, ssize_t i_count )
void bb_skip( BITBUFFER *bb, size_t i_count )
{
bb->i_left -= i_count;
......@@ -194,10 +194,10 @@ void bb_skip( BITBUFFER *bb, ssize_t i_count )
}
}
void bs_skip( BITSTREAM *bs, ssize_t i_count )
void bs_skip( BITSTREAM *bs, size_t i_count )
{
int left;
int bytes = i_count >> 3;
size_t bytes = i_count >> 3;
if (bs->bb.p + bytes >= bs->bb.p_end) {
bs->pos = bs->pos + (bs->bb.p - bs->bb.p_start);
......
......@@ -59,8 +59,8 @@ BD_PRIVATE void bb_init( BITBUFFER *bb, const uint8_t *p_data, size_t i_data );
BD_PRIVATE void bs_init( BITSTREAM *bs, BD_FILE_H *fp );
BD_PRIVATE void bb_seek( BITBUFFER *bb, int64_t off, int whence);
BD_PRIVATE void bs_seek( BITSTREAM *bs, int64_t off, int whence);
BD_PRIVATE void bb_skip( BITBUFFER *bb, ssize_t i_count );
BD_PRIVATE void bs_skip( BITSTREAM *bs, ssize_t i_count );
BD_PRIVATE void bb_skip( BITBUFFER *bb, size_t i_count );
BD_PRIVATE void bs_skip( BITSTREAM *bs, size_t i_count ); /* note: i_count must be less than BF_BUF_SIZE */
BD_PRIVATE uint32_t bb_read( BITBUFFER *bb, int i_count );
BD_PRIVATE uint32_t bs_read( BITSTREAM *bs, int i_count );
......
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