Mercurial > libavcodec.hg
comparison get_bits.h @ 10504:9f16f997c41b libavcodec
Make get_bits_left() available for use in libavcodec (was previously held
private in dv.c for some reason). See "[PATCH] get_bits_left()" thread.
author | rbultje |
---|---|
date | Mon, 09 Nov 2009 22:10:43 +0000 |
parents | bdf4a9ca162a |
children | 3be801dcc8a1 |
comparison
equal
deleted
inserted
replaced
10503:8d536f190e6e | 10504:9f16f997c41b |
---|---|
700 return 0; | 700 return 0; |
701 else | 701 else |
702 return 2 - get_bits1(gb); | 702 return 2 - get_bits1(gb); |
703 } | 703 } |
704 | 704 |
705 static inline int get_bits_left(GetBitContext *gb) | |
706 { | |
707 return gb->size_in_bits - get_bits_count(gb); | |
708 } | |
709 | |
705 #endif /* AVCODEC_GET_BITS_H */ | 710 #endif /* AVCODEC_GET_BITS_H */ |