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

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


Author: ramiro
Date: Tue Jul  1 17:22:16 2008
New Revision: 2630

Log:
Split huff decode and filter loops.

Modified:
   mlp/mlpdec.c

Modified: mlp/mlpdec.c
==============================================================================
--- mlp/mlpdec.c	(original)
+++ mlp/mlpdec.c	Tue Jul  1 17:22:16 2008
@@ -798,6 +798,14 @@ static int read_block_data(MLPDecodeCont
             if (sample == INT32_MAX)
                 return -1;
 
+            m->sample_buffer[i + s->blockpos][ch] = sample;
+        }
+    }
+
+    for (ch = s->min_channel; ch <= s->max_channel; ch++) {
+        for (i = 0; i < s->blocksize; i++) {
+            int32_t sample = m->sample_buffer[i + s->blockpos][ch];
+
             sample = filter_sample(m, substr, ch, sample);
 
             m->sample_buffer[i + s->blockpos][ch] = sample;



More information about the FFmpeg-soc mailing list