Commit 1b781f82 authored by Michael Niedermayer's avatar Michael Niedermayer

support skiping some bitstream encoding

Originally committed as revision 3939 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 09b0499f
......@@ -290,6 +290,20 @@ static inline void skip_put_bytes(PutBitContext *s, int n){
#endif
}
/**
* skips the given number of bits.
* must only be used if the actual values in the bitstream dont matter
*/
static inline void skip_put_bits(PutBitContext *s, int n){
#ifdef ALT_BITSTREAM_WRITER
s->index += n;
#else
s->bit_left -= n;
s->buf_ptr-= s->bit_left>>5;
s->bit_left &= 31;
#endif
}
/**
* Changes the end of the buffer.
*/
......
This diff is collapsed.
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