summaryrefslogtreecommitdiff
path: root/libavcodec/dv.c
diff options
context:
space:
mode:
authorRoman Shaposhnik <roman@shaposhnik.org>2004-03-18 04:19:34 +0000
committerRoman Shaposhnik <roman@shaposhnik.org>2004-03-18 04:19:34 +0000
commit5825425795f46280feb39cfb03f9dfb20da2089a (patch)
tree8841d7a89bc74ec41e2d0136242ca01c247e32fd /libavcodec/dv.c
parent7976241aefc011a6f242366edf118e3633d2a6a2 (diff)
* removing casualties of battle of the wits and English language
Originally committed as revision 2902 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/dv.c')
-rw-r--r--libavcodec/dv.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/libavcodec/dv.c b/libavcodec/dv.c
index 45f68e2a69..6b7ca1d8d2 100644
--- a/libavcodec/dv.c
+++ b/libavcodec/dv.c
@@ -240,6 +240,21 @@ static const int mb_area_start[5] = { 1, 6, 21, 43, 64 };
#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)
{