Mercurial > libavcodec.hg
comparison h263.c @ 70:c7767df463f4 libavcodec
log2 to av_log2
author | glantau |
---|---|
date | Wed, 15 Aug 2001 13:11:31 +0000 |
parents | 8e2d8dbf89a5 |
children | 92ed1c4f94fa |
comparison
equal
deleted
inserted
replaced
69:361631a8d140 | 70:c7767df463f4 |
---|---|
1176 skip_bits1(&s->gb); /* vol control parameter */ | 1176 skip_bits1(&s->gb); /* vol control parameter */ |
1177 s->shape = get_bits(&s->gb, 2); /* vol shape */ | 1177 s->shape = get_bits(&s->gb, 2); /* vol shape */ |
1178 skip_bits1(&s->gb); /* marker */ | 1178 skip_bits1(&s->gb); /* marker */ |
1179 | 1179 |
1180 time_increment_resolution = get_bits(&s->gb, 16); | 1180 time_increment_resolution = get_bits(&s->gb, 16); |
1181 s->time_increment_bits = log2(time_increment_resolution - 1) + 1; | 1181 s->time_increment_bits = av_log2(time_increment_resolution - 1) + 1; |
1182 if (s->time_increment_bits < 1) | 1182 if (s->time_increment_bits < 1) |
1183 s->time_increment_bits = 1; | 1183 s->time_increment_bits = 1; |
1184 skip_bits1(&s->gb); /* marker */ | 1184 skip_bits1(&s->gb); /* marker */ |
1185 | 1185 |
1186 if (get_bits1(&s->gb) != 0) { /* fixed_vop_rate */ | 1186 if (get_bits1(&s->gb) != 0) { /* fixed_vop_rate */ |