* Returns the pointer to the byte where the bitstream writer will put
* the next bit.
*/
-static inline uint8_t* pbBufPtr(PutBitContext *s)
+static inline uint8_t* put_bits_ptr(PutBitContext *s)
{
#ifdef ALT_BITSTREAM_WRITER
return s->buf + (s->index>>3);
s->index += n;
#else
s->bit_left -= n;
- s->buf_ptr-= s->bit_left>>5;
+ s->buf_ptr-= 4*(s->bit_left>>5);
s->bit_left &= 31;
#endif
}