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

ramiro subversion at mplayerhq.hu
Sun Aug 10 16:40:14 CEST 2008


Author: ramiro
Date: Sun Aug 10 16:40:14 2008
New Revision: 3146

Log:
Declare variable closer to where it's used.

Modified:
   mlp/mlpenc.c

Modified: mlp/mlpenc.c
==============================================================================
--- mlp/mlpenc.c	(original)
+++ mlp/mlpenc.c	Sun Aug 10 16:40:14 2008
@@ -842,7 +842,7 @@ static void determine_bits(MLPEncodeCont
         for (channel = 0; channel <= rh->max_channel; channel++) {
             int16_t min = INT16_MAX, max = INT16_MIN;
             int best_codebook = 0;
-            BestOffset bo, temp_bo = { 0, INT_MAX, 0, };
+            BestOffset bo;
             int average = 0;
             int i;
 
@@ -860,6 +860,8 @@ static void determine_bits(MLPEncodeCont
             no_codebook_bits(ctx, substr, channel, min, max, &bo);
 
             for (i = 1; i < 4; i++) {
+                BestOffset temp_bo = { 0, INT_MAX, 0, };
+
                 codebook_bits(ctx, substr, channel, i - 1, average,
                               min, max, &temp_bo, 0);
                 codebook_bits(ctx, substr, channel, i - 1, average,



More information about the FFmpeg-soc mailing list