[FFmpeg-soc] [soc]: r4585 - wmapro/wma3dec.c

faust3 subversion at mplayerhq.hu
Sat Jul 4 11:22:20 CEST 2009


Author: faust3
Date: Sat Jul  4 11:22:20 2009
New Revision: 4585

Log:
do not reuse the num_fill_bits variable to read the length of its size

Modified:
   wmapro/wma3dec.c

Modified: wmapro/wma3dec.c
==============================================================================
--- wmapro/wma3dec.c	Sat Jul  4 11:11:04 2009	(r4584)
+++ wmapro/wma3dec.c	Sat Jul  4 11:22:20 2009	(r4585)
@@ -1200,8 +1200,8 @@ static int decode_subframe(WMA3DecodeCon
     if (get_bits1(&s->gb)) {
         int num_fill_bits;
         if (!(num_fill_bits = get_bits(&s->gb,2))) {
-            num_fill_bits = get_bits(&s->gb,4);
-            num_fill_bits = get_bits(&s->gb,num_fill_bits) + 1;
+            int len = get_bits(&s->gb, 4);
+            num_fill_bits = get_bits(&s->gb, len) + 1;
         }
 
         if (num_fill_bits >= 0) {


More information about the FFmpeg-soc mailing list