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

ramiro subversion at mplayerhq.hu
Sun Aug 10 15:38:30 CEST 2008


Author: ramiro
Date: Sun Aug 10 15:38:30 2008
New Revision: 3137

Log:
Only check for best bitcount if it was smaller than previous bitcount.

Modified:
   mlp/mlpenc.c

Modified: mlp/mlpenc.c
==============================================================================
--- mlp/mlpenc.c	(original)
+++ mlp/mlpenc.c	Sun Aug 10 15:38:30 2008
@@ -812,10 +812,10 @@ static void codebook_bits(MLPEncodeConte
                                  min, max, offset,
                                  &temp_bo, &next, !direction);
 
+            if (temp_bo.bitcount < previous_count) {
             if (temp_bo.bitcount < best_bo.bitcount)
                 best_bo = temp_bo;
 
-            if (temp_bo.bitcount < previous_count) {
                 is_greater = 0;
             } else if (++is_greater >= 5)
                 break;



More information about the FFmpeg-soc mailing list