47
47
put_bits(pbc, 8, 0);
50
/* bit input functions */
55
unsigned int get_bits_long(GetBitContext *s, int n){
56
if(n<=17) return get_bits(s, n);
58
int ret= get_bits(s, 16) << (n-16);
59
return ret | get_bits(s, n-16);
66
unsigned int show_bits_long(GetBitContext *s, int n){
67
if(n<=17) return show_bits(s, n);
70
int ret= get_bits_long(s, n);
76
void align_get_bits(GetBitContext *s)
78
int n= (-get_bits_count(s)) & 7;
79
if(n) skip_bits(s, n);
82
int check_marker(GetBitContext *s, const char *msg)
84
int bit= get_bits1(s);
86
av_log(NULL, AV_LOG_INFO, "Marker bit missing %s\n", msg);
93
52
//#define DEBUG_VLC