[FFmpeg-cvslog] skip_bits: dont call UPDATE_CACHE

Michael Niedermayer git at videolan.org
Mon Sep 30 14:34:51 CEST 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Sep 30 14:02:53 2013 +0200| [54197c7aae74314897f22ce0e8d37a78f974fc32] | committer: Michael Niedermayer

skip_bits: dont call UPDATE_CACHE

UPDATE_CACHE isnt needed and can cause segfaults

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=54197c7aae74314897f22ce0e8d37a78f974fc32
---

 libavcodec/get_bits.h |    1 -
 1 file changed, 1 deletion(-)

diff --git a/libavcodec/get_bits.h b/libavcodec/get_bits.h
index 5da90b6..4ddb088 100644
--- a/libavcodec/get_bits.h
+++ b/libavcodec/get_bits.h
@@ -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);
 }



More information about the ffmpeg-cvslog mailing list