diff bitstream.c @ 3629:2ab6ec6259b1 libavcodec

move align_get_bits() to .h to avoid conflicts between different bitstream readers in different codecs add a skip_bits_long() which can skip by any amount in any direction (several codecs contain half working hacks to do that)
author michael
date Sat, 26 Aug 2006 10:26:14 +0000
parents 0b546eab515d
children c44d798b06b5
line wrap: on
line diff
--- a/bitstream.c	Sat Aug 26 09:34:02 2006 +0000
+++ b/bitstream.c	Sat Aug 26 10:26:14 2006 +0000
@@ -73,12 +73,6 @@
     }
 }
 
-void align_get_bits(GetBitContext *s)
-{
-    int n= (-get_bits_count(s)) & 7;
-    if(n) skip_bits(s, n);
-}
-
 int check_marker(GetBitContext *s, const char *msg)
 {
     int bit= get_bits1(s);