[FFmpeg-soc] [soc]: r3152 - mlp/mlpenc.c
ramiro
subversion at mplayerhq.hu
Sun Aug 10 17:21:02 CEST 2008
Author: ramiro
Date: Sun Aug 10 17:21:02 2008
New Revision: 3152
Log:
Reuse number_sbits() in no_codebook_bits().
Modified:
mlp/mlpenc.c
Modified: mlp/mlpenc.c
==============================================================================
--- mlp/mlpenc.c (original)
+++ mlp/mlpenc.c Sun Aug 10 17:21:02 2008
@@ -707,7 +707,7 @@ static void no_codebook_bits(MLPEncodeCo
/* Determine offset and minimum number of bits. */
diff = max - min;
- for (lsb_bits = 16; lsb_bits && !(diff & (1<<(lsb_bits-1))); lsb_bits--);
+ lsb_bits = number_sbits(diff) - 1;
unsign = 1 << (lsb_bits - 1);
More information about the FFmpeg-soc
mailing list