[FFmpeg-cvslog] r13782 - trunk/libavcodec/g726.c

michael subversion
Mon Jun 16 22:42:54 CEST 2008


Author: michael
Date: Mon Jun 16 22:42:54 2008
New Revision: 13782

Log:
get_bits() outputs exactly as many bits as requested no need to mask them.


Modified:
   trunk/libavcodec/g726.c

Modified: trunk/libavcodec/g726.c
==============================================================================
--- trunk/libavcodec/g726.c	(original)
+++ trunk/libavcodec/g726.c	Mon Jun 16 22:42:54 2008
@@ -390,7 +390,7 @@ static int g726_decode_frame(AVCodecCont
     }
 
     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);




More information about the ffmpeg-cvslog mailing list