3rd try :)
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 26 Aug 2006 11:26:54 +0000 (11:26 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 26 Aug 2006 11:26:54 +0000 (11:26 +0000)
Originally committed as revision 6095 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/bitstream.h

index 654f259..ed8c8fc 100644 (file)
@@ -580,7 +580,7 @@ static inline int get_bits_count(GetBitContext *s){
 static inline void skip_bits_long(GetBitContext *s, int n){
     OPEN_READER(re, s)
     re_bit_count += n;
-    re_buffer_ptr += s->bit_count>>5;
+    re_buffer_ptr += re_bit_count>>5;
     re_bit_count &= 31;
     re_cache0 = be2me_32( re_buffer_ptr[-1] ) << re_bit_count;
     re_cache1 = 0;