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

ramiro subversion at mplayerhq.hu
Mon Apr 20 04:28:23 CEST 2009


Author: ramiro
Date: Mon Apr 20 04:28:23 2009
New Revision: 4204

Log:
Move setting blocksize closer to where it's needed.

Modified:
   mlp/mlpenc.c

Modified: mlp/mlpenc.c
==============================================================================
--- mlp/mlpenc.c	Mon Apr 20 04:27:58 2009	(r4203)
+++ mlp/mlpenc.c	Mon Apr 20 04:28:23 2009	(r4204)
@@ -2114,14 +2114,6 @@ static void analyze_sample_buffer(MLPEnc
     for (substr = 0; substr < ctx->num_substreams; substr++) {
 
         ctx->cur_restart_header = &ctx->restart_header[substr];
-
-        for (index = 0; index < ctx->number_of_frames; index++) {
-            DecodingParams *dp = &seq_dp[index + 1][substr];
-            dp->blocksize = ctx->frame_size[index];
-        }
-        seq_dp[0][substr].blocksize  = 8;
-        seq_dp[1][substr].blocksize -= 8;
-
         ctx->cur_decoding_params = &seq_dp[1][substr];
         ctx->cur_channel_params = seq_cp[1];
 
@@ -2134,6 +2126,13 @@ static void analyze_sample_buffer(MLPEnc
 
         copy_restart_frame_params(ctx, substr);
 
+        for (index = 0; index < ctx->number_of_frames; index++) {
+            DecodingParams *dp = &seq_dp[index + 1][substr];
+            dp->blocksize = ctx->frame_size[index];
+        }
+        seq_dp[0][substr].blocksize  = 8;
+        seq_dp[1][substr].blocksize -= 8;
+
         for (index = 0; index < ctx->number_of_frames + 1; index++) {
                 ctx->cur_decoding_params = &seq_dp[index][substr];
                 ctx->cur_channel_params = seq_cp[index];


More information about the FFmpeg-soc mailing list