[FFmpeg-cvslog] r20490 - in trunk/libavcodec: dv.c get_bits.h

rbultje subversion
Mon Nov 9 23:10:43 CET 2009


Author: rbultje
Date: Mon Nov  9 23:10:43 2009
New Revision: 20490

Log:
Make get_bits_left() available for use in libavcodec (was previously held
private in dv.c for some reason). See "[PATCH] get_bits_left()" thread.

Modified:
   trunk/libavcodec/dv.c
   trunk/libavcodec/get_bits.h

Modified: trunk/libavcodec/dv.c
==============================================================================
--- trunk/libavcodec/dv.c	Mon Nov  9 23:04:03 2009	(r20489)
+++ trunk/libavcodec/dv.c	Mon Nov  9 23:10:43 2009	(r20490)
@@ -416,11 +416,6 @@ static const int vs_total_ac_bits = (100
 /* see dv_88_areas and dv_248_areas for details */
 static const int mb_area_start[5] = { 1, 6, 21, 43, 64 };
 
-static inline int get_bits_left(GetBitContext *s)
-{
-    return s->size_in_bits - get_bits_count(s);
-}
-
 static inline int put_bits_left(PutBitContext* s)
 {
     return (s->buf_end - s->buf) * 8 - put_bits_count(s);

Modified: trunk/libavcodec/get_bits.h
==============================================================================
--- trunk/libavcodec/get_bits.h	Mon Nov  9 23:04:03 2009	(r20489)
+++ trunk/libavcodec/get_bits.h	Mon Nov  9 23:10:43 2009	(r20490)
@@ -702,4 +702,9 @@ static inline int decode210(GetBitContex
         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 */



More information about the ffmpeg-cvslog mailing list