Fix skip_put_bits() buf_ptr increment.
authorStefano Sabatini <stefano.sabatini-lala@poste.it>
Mon, 13 Apr 2009 20:44:42 +0000 (20:44 +0000)
committerStefano Sabatini <stefano.sabatini-lala@poste.it>
Mon, 13 Apr 2009 20:44:42 +0000 (20:44 +0000)
Originally committed as revision 18499 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/put_bits.h

index 2009a2b..61c6c9b 100644 (file)
@@ -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
 }