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);
_______________________________________________
FFmpeg-soc mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-soc