Author: ramiro
Date: Tue Jul  1 19:01:15 2008
New Revision: 2652

Log:
Read quant_step_size from context only once.

Modified:
   mlp/mlpdec.c

Modified: mlp/mlpdec.c
==============================================================================
--- mlp/mlpdec.c        (original)
+++ mlp/mlpdec.c        Tue Jul  1 19:01:15 2008
@@ -910,6 +910,7 @@ static void rematrix_channels(MLPDecodeC
 
     for (mat = 0; mat < s->num_primitive_matrices; mat++) {
         unsigned int dest_ch = s->matrix_ch[mat];
+        int quant_step_size = s->quant_step_size[dest_ch];
 
         /* TODO: DSPContext? */
 
@@ -924,7 +925,7 @@ static void rematrix_channels(MLPDecodeC
                 index = (i * (index * 2 + 1) + index) & 
(m->access_unit_size_pow2 - 1);
                 accum += m->noise_buffer[index] << (s->matrix_noise_shift[mat] 
+ 7);
             }
-            m->sample_buffer[i][dest_ch] = ((accum >> 14) & ~((1 << 
s->quant_step_size[dest_ch]) - 1))
+            m->sample_buffer[i][dest_ch] = ((accum >> 14) & ~((1 << 
quant_step_size) - 1))
                                              + m->bypassed_lsbs[i][mat];
         }
     }
_______________________________________________
FFmpeg-soc mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-soc

Reply via email to