OSDN Git Service

skip_bits: dont call UPDATE_CACHE
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 30 Sep 2013 12:02:53 +0000 (14:02 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 30 Sep 2013 12:34:12 +0000 (14:34 +0200)
UPDATE_CACHE isnt needed and can cause segfaults

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/get_bits.h

index 5da90b6..4ddb088 100644 (file)
@@ -292,7 +292,6 @@ static inline unsigned int show_bits(GetBitContext *s, int n)
 static inline void skip_bits(GetBitContext *s, int n)
 {
     OPEN_READER(re, s);
-    UPDATE_CACHE(re, s);
     LAST_SKIP_BITS(re, s, n);
     CLOSE_READER(re, s);
 }