]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/get_bits.h
Fix nv12/nv21 handling. linesize for plane 1 should account for both chroma
[ffmpeg] / libavcodec / get_bits.h
index 0a3ffae25f9c3b562f7d1965e5aff4f1db6c8f51..1863e7de4a7943cd86f2bbab637da77c5070ff3d 100644 (file)
@@ -49,8 +49,6 @@
 #   endif
 #endif
 
-extern const uint8_t ff_reverse[256];
-
 #if ARCH_X86
 // avoid +32 for shift optimization (gcc should do that ...)
 static inline  int32_t NEG_SSR32( int32_t a, int8_t s){
@@ -704,4 +702,9 @@ static inline int decode210(GetBitContext *gb){
         return 2 - get_bits1(gb);
 }
 
+static inline int get_bits_left(GetBitContext *gb)
+{
+    return gb->size_in_bits - get_bits_count(gb);
+}
+
 #endif /* AVCODEC_GET_BITS_H */