diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2006-08-26 14:26:14 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2006-08-26 14:26:14 +0400 |
commit | 5a7bd28335d502d90c727f69a50e6f251c305e72 (patch) | |
tree | bb490c9bb4cc71148723e82e4b0bd86b541ce78c /libavcodec/bitstream.c | |
parent | 727c236a6b07ac4426d5c5e3e564c563c890bb7c (diff) |
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)
Originally committed as revision 6093 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/bitstream.c')
-rw-r--r-- | libavcodec/bitstream.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/libavcodec/bitstream.c b/libavcodec/bitstream.c index 49c6ece1b0..7eee0229a8 100644 --- a/libavcodec/bitstream.c +++ b/libavcodec/bitstream.c @@ -73,12 +73,6 @@ unsigned int show_bits_long(GetBitContext *s, int n){ } } -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); |