[FFmpeg-cvslog] Make get_bits_left() available for use in libavcodec (was previously held
Ronald S. Bultje
git
Sun Feb 20 19:30:47 CET 2011
ffmpeg | branch: release/0.5 | Ronald S. Bultje <rsbultje at gmail.com> | Mon Nov 9 22:10:43 2009 +0000| [f7494394ee8b375c9962e7528e7b7de6db76518e] | committer: Reinhard Tartler
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.
Originally committed as revision 20490 to svn://svn.ffmpeg.org/ffmpeg/trunk
(cherry picked from commit c47ca25e74bbe465cdc8b99d4f6ab4f0ad5e4229)
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f7494394ee8b375c9962e7528e7b7de6db76518e
---
libavcodec/bitstream.h | 5 +++++
libavcodec/dv.c | 5 -----
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/libavcodec/bitstream.h b/libavcodec/bitstream.h
index e1ec934..8941da2 100644
--- a/libavcodec/bitstream.h
+++ b/libavcodec/bitstream.h
@@ -946,4 +946,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_BITSTREAM_H */
diff --git a/libavcodec/dv.c b/libavcodec/dv.c
index 59ebb08..be4a746 100644
--- a/libavcodec/dv.c
+++ b/libavcodec/dv.c
@@ -414,11 +414,6 @@ static const int vs_total_ac_bits = (100 * 4 + 68*2) * 5;
/* 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);
More information about the ffmpeg-cvslog
mailing list