Commit e047c398 authored by Francois Cartegnie's avatar Francois Cartegnie

vlc_bits: add bs_aligned

parent dcae6a70
......@@ -199,6 +199,11 @@ static inline void bs_write( bs_t *s, int i_count, uint32_t i_bits )
}
}
static inline bool bs_aligned( bs_t *s )
{
return s->i_left % 8 == 0;
}
static inline void bs_align( bs_t *s )
{
if( s->i_left != 8 )
......
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