[FFmpeg-soc] [soc]: r4214 - mlp/mlpenc.c

ramiro subversion at mplayerhq.hu
Mon Apr 20 04:36:35 CEST 2009


Author: ramiro
Date: Mon Apr 20 04:36:35 2009
New Revision: 4214

Log:
quant_step_size must be determined with the raw samples.

Modified:
   mlp/mlpenc.c

Modified: mlp/mlpenc.c
==============================================================================
--- mlp/mlpenc.c	Mon Apr 20 04:34:42 2009	(r4213)
+++ mlp/mlpenc.c	Mon Apr 20 04:36:35 2009	(r4214)
@@ -1311,7 +1311,7 @@ static int number_trailing_zeroes(int32_
 }
 
 /** Determines how many bits are zero at the end of all samples so they can be
- *  shifted out for the huffman coder.
+ *  shifted out.
  */
 static void determine_quant_step_size(MLPEncodeContext *ctx)
 {
@@ -2138,10 +2138,10 @@ static void analyze_sample_buffer(MLPEnc
         ctx->cur_decoding_params = &seq_dp[1][substr];
         ctx->cur_channel_params = seq_cp[1];
 
+        determine_quant_step_size(ctx);
         generate_2_noise_channels(ctx);
         lossless_matrix_coeffs   (ctx);
         rematrix_channels        (ctx);
-        determine_quant_step_size(ctx);
         determine_filters        (ctx);
         apply_filters            (ctx);
 


More information about the FFmpeg-soc mailing list