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

ramiro subversion at mplayerhq.hu
Mon Apr 20 04:27:58 CEST 2009


Author: ramiro
Date: Mon Apr 20 04:27:58 2009
New Revision: 4203

Log:
Merge two loops.

Modified:
   mlp/mlpenc.c

Modified: mlp/mlpenc.c
==============================================================================
--- mlp/mlpenc.c	Mon Apr 20 04:22:45 2009	(r4202)
+++ mlp/mlpenc.c	Mon Apr 20 04:27:58 2009	(r4203)
@@ -2070,15 +2070,11 @@ static void set_major_params(MLPEncodeCo
     for (substr = 0; substr < ctx->num_substreams; substr++) {
         DecodingParams (*seq_dp)[ctx->num_substreams] =
              (DecodingParams (*)[ctx->num_substreams]) &decoding_params[ctx->restart_intervals - 1][ctx->seq_offset[ctx->restart_intervals - 1]];
-        for (index = 0; index < ctx->seq_size[ctx->restart_intervals-1]; index++)
-            memcpy(&ctx->major_decoding_params[index][substr], &seq_dp[index][substr], sizeof(DecodingParams));
-    }
-
-    {
         ChannelParams (*seq_cp)[ctx->avctx->channels] =
              (ChannelParams (*)[ctx->avctx->channels]) &channel_params[ctx->restart_intervals - 1][ctx->seq_offset[ctx->restart_intervals - 1]];
         unsigned int channel;
         for (index = 0; index < ctx->seq_size[ctx->restart_intervals-1]; index++) {
+            memcpy(&ctx->major_decoding_params[index][substr], &seq_dp[index][substr], sizeof(DecodingParams));
             for (channel = 0; channel < ctx->avctx->channels; channel++) {
                 if (max_huff_lsbs < seq_cp[index][channel].huff_lsbs)
                     max_huff_lsbs = seq_cp[index][channel].huff_lsbs;


More information about the FFmpeg-soc mailing list