Mercurial > libavcodec.hg
comparison h263.c @ 5513:9f8219a3b86f libavcodec
use get_bits1(..) instead get_bits(.., 1)
author | alex |
---|---|
date | Thu, 09 Aug 2007 00:13:31 +0000 |
parents | 5581a40c673a |
children | c5ef5e6da9c5 |
comparison
equal
deleted
inserted
replaced
5512:28dcc5cd79d2 | 5513:9f8219a3b86f |
---|---|
5075 if (ufep == 1) { | 5075 if (ufep == 1) { |
5076 /* OPPTYPE */ | 5076 /* OPPTYPE */ |
5077 format = get_bits(&s->gb, 3); | 5077 format = get_bits(&s->gb, 3); |
5078 dprintf(s->avctx, "ufep=1, format: %d\n", format); | 5078 dprintf(s->avctx, "ufep=1, format: %d\n", format); |
5079 s->custom_pcf= get_bits1(&s->gb); | 5079 s->custom_pcf= get_bits1(&s->gb); |
5080 s->umvplus = get_bits(&s->gb, 1); /* Unrestricted Motion Vector */ | 5080 s->umvplus = get_bits1(&s->gb); /* Unrestricted Motion Vector */ |
5081 if (get_bits1(&s->gb) != 0) { | 5081 if (get_bits1(&s->gb) != 0) { |
5082 av_log(s->avctx, AV_LOG_ERROR, "Syntax-based Arithmetic Coding (SAC) not supported\n"); | 5082 av_log(s->avctx, AV_LOG_ERROR, "Syntax-based Arithmetic Coding (SAC) not supported\n"); |
5083 } | 5083 } |
5084 s->obmc= get_bits1(&s->gb); /* Advanced prediction mode */ | 5084 s->obmc= get_bits1(&s->gb); /* Advanced prediction mode */ |
5085 s->h263_aic = get_bits1(&s->gb); /* Advanced Intra Coding (AIC) */ | 5085 s->h263_aic = get_bits1(&s->gb); /* Advanced Intra Coding (AIC) */ |