changeset 7046:589806348538 libavcodec

get_bits() outputs exactly as many bits as requested no need to mask them.
author michael
date Mon, 16 Jun 2008 20:42:54 +0000
parents 1fbf79fdd77b
children 4b5b586a3dd0
files g726.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/g726.c	Mon Jun 16 20:40:44 2008 +0000
+++ b/g726.c	Mon Jun 16 20:42:54 2008 +0000
@@ -390,7 +390,7 @@
     }
 
     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);