changeset 7039:b252326ba895 libavcodec

remove useless wrapper func
author bcoudurier
date Tue, 10 Jun 2008 19:21:40 +0000
parents 110080ab2391
children e943e1409077
files dv.c
diffstat 1 files changed, 1 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/dv.c	Mon Jun 09 16:30:59 2008 +0000
+++ b/dv.c	Tue Jun 10 19:21:40 2008 +0000
@@ -271,11 +271,6 @@
     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);
@@ -284,7 +279,7 @@
 /* decode ac coefs */
 static void dv_decode_ac(GetBitContext *gb, BlockInfo *mb, DCTELEM *block)
 {
-    int last_index = get_bits_size(gb);
+    int last_index = gb->size_in_bits;
     const uint8_t *scan_table = mb->scan_table;
     const uint8_t *shift_table = mb->shift_table;
     const int *iweight_table = mb->iweight_table;