]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/put_bits.h
add casts to silence gcc warnings
[ffmpeg] / libavcodec / put_bits.h
index 32b11f6445cab5d0c5a754e61516effa3a0e2f23..61c6c9b31f2066cfa17dd2ff649b53ef4a868c62 100644 (file)
@@ -263,7 +263,7 @@ static inline void put_sbits(PutBitContext *pb, int bits, int32_t val)
  * 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);
@@ -297,7 +297,7 @@ static inline void skip_put_bits(PutBitContext *s, int n){
     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
 }