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

ramiro subversion at mplayerhq.hu
Sun Aug 10 15:33:55 CEST 2008


Author: ramiro
Date: Sun Aug 10 15:33:55 2008
New Revision: 3135

Log:
Declare variables closer to where they're used.

Modified:
   mlp/mlpenc.c

Modified: mlp/mlpenc.c
==============================================================================
--- mlp/mlpenc.c	(original)
+++ mlp/mlpenc.c	Sun Aug 10 15:33:55 2008
@@ -793,18 +793,16 @@ static void codebook_bits(MLPEncodeConte
 {
     BestOffset best_bo = { 0, INT_MAX, 0, };
     int offset_min, offset_max;
-    int previous_count;
-    int is_greater;
     int direction;
-    int offset;
-    int next;
 
     offset_min = FFMAX(min, HUFF_OFFSET_MIN);
     offset_max = FFMIN(max, HUFF_OFFSET_MAX);
 
     for (direction = 0; direction < 2; direction++) {
-        previous_count = INT_MAX;
-        is_greater = 0;
+        int previous_count = INT_MAX;
+        int is_greater = 0;
+        int offset;
+        int next;
 
         for (offset = average; offset >= offset_min &&
                                offset <= offset_max;) {



More information about the FFmpeg-soc mailing list