diff dv.c @ 1895:e5687117cc7f libavcodec

* removing casualties of battle of the wits and English language
author romansh
date Thu, 18 Mar 2004 04:19:34 +0000
parents 85fe2f4633ec
children 129236143f2e
line wrap: on
line diff
--- a/dv.c	Tue Mar 16 17:27:03 2004 +0000
+++ b/dv.c	Thu Mar 18 04:19:34 2004 +0000
@@ -240,6 +240,21 @@
 #warning only works with ALT_BITSTREAM_READER
 #endif
 
+static inline int get_bits_left(GetBitContext *s)
+{
+    return s->size_in_bits - get_bits_count(s);
+}
+
+static inline int get_bits_size(GetBitContext *s)
+{
+    return s->size_in_bits;
+}
+
+static inline int put_bits_left(PutBitContext* s)
+{
+    return (s->buf_end - s->buf) * 8 - put_bits_count(s);
+}
+
 /* decode ac coefs */
 static void dv_decode_ac(GetBitContext *gb, BlockInfo *mb, DCTELEM *block)
 {