projects
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6ec220
)
get_bits() outputs exactly as many bits as requested no need to mask them.
author
Michael Niedermayer
<michaelni@gmx.at>
Mon, 16 Jun 2008 20:42:54 +0000
(20:42 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Mon, 16 Jun 2008 20:42:54 +0000
(20:42 +0000)
Originally committed as revision 13782 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/g726.c
patch
|
blob
|
blame
|
history
diff --git
a/libavcodec/g726.c
b/libavcodec/g726.c
index
35be557
..
f59287d
100644
(file)
--- 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);