[FFmpeg-soc] [soc]: r2634 - mlp/mlpdec.c

ramiro subversion at mplayerhq.hu
Tue Jul 1 17:34:58 CEST 2008


Author: ramiro
Date: Tue Jul  1 17:34:57 2008
New Revision: 2634

Log:
Read quant_step_size from context once per channel.

Modified:
   mlp/mlpdec.c

Modified: mlp/mlpdec.c
==============================================================================
--- mlp/mlpdec.c	(original)
+++ mlp/mlpdec.c	Tue Jul  1 17:34:57 2008
@@ -801,10 +801,12 @@ static int read_block_data(MLPDecodeCont
     }
 
     for (ch = s->min_channel; ch <= s->max_channel; ch++) {
+        unsigned int quant_step_size = s->quant_step_size[ch];
+
         for (i = 0; i < s->blocksize; i++) {
             int32_t sample = m->sample_buffer[i + s->blockpos][ch];
 
-            sample = filter_sample(m, s->quant_step_size[ch], ch, sample);
+            sample = filter_sample(m, quant_step_size, ch, sample);
 
             m->sample_buffer[i + s->blockpos][ch] = sample;
         }



More information about the FFmpeg-soc mailing list