aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2008-06-16 20:42:54 +0000
committerMichael Niedermayer <michaelni@gmx.at>2008-06-16 20:42:54 +0000
commit6dfcdc00b3e9c4e876fea5b051bc037ba20cf6aa (patch)
tree9509dfbefded3c634bb5865ba22d2bb7aa827bd0
parentf6ec220cb50fcbbd6082be10c227c34370cd9533 (diff)
downloadffmpeg-6dfcdc00b3e9c4e876fea5b051bc037ba20cf6aa.tar.gz
get_bits() outputs exactly as many bits as requested no need to mask them.
Originally committed as revision 13782 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/g726.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/g726.c b/libavcodec/g726.c
index 35be557f0c..f59287db84 100644
--- a/libavcodec/g726.c
+++ b/libavcodec/g726.c
@@ -390,7 +390,7 @@ static int g726_decode_frame(AVCodecContext *avctx,
}
while (get_bits_count(&gb) + c->code_size <= buf_size*8)
- *samples++ = g726_decode(&c->c, get_bits(&gb, c->code_size) & mask);
+ *samples++ = g726_decode(&c->c, get_bits(&gb, c->code_size));
c->bits_left = buf_size*8 - get_bits_count(&gb);
c->bit_buffer = get_bits(&gb, c->bits_left);