Mercurial > libavcodec.hg
comparison put_bits.h @ 9433:70afd9081b3f libavcodec
Fix skip_put_bits() buf_ptr increment.
author | stefano |
---|---|
date | Mon, 13 Apr 2009 20:44:42 +0000 |
parents | 932543edc1d2 |
children | 2887f410011f |
comparison
equal
deleted
inserted
replaced
9432:c9fda17dc042 | 9433:70afd9081b3f |
---|---|
295 static inline void skip_put_bits(PutBitContext *s, int n){ | 295 static inline void skip_put_bits(PutBitContext *s, int n){ |
296 #ifdef ALT_BITSTREAM_WRITER | 296 #ifdef ALT_BITSTREAM_WRITER |
297 s->index += n; | 297 s->index += n; |
298 #else | 298 #else |
299 s->bit_left -= n; | 299 s->bit_left -= n; |
300 s->buf_ptr-= s->bit_left>>5; | 300 s->buf_ptr-= 4*(s->bit_left>>5); |
301 s->bit_left &= 31; | 301 s->bit_left &= 31; |
302 #endif | 302 #endif |
303 } | 303 } |
304 | 304 |
305 /** | 305 /** |