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

ramiro subversion at mplayerhq.hu
Wed Aug 27 20:46:32 CEST 2008


Author: ramiro
Date: Wed Aug 27 20:46:32 2008
New Revision: 3652

Log:
Encode silence using no bits.

Modified:
   mlp/mlpenc.c

Modified: mlp/mlpenc.c
==============================================================================
--- mlp/mlpenc.c	(original)
+++ mlp/mlpenc.c	Wed Aug 27 20:46:32 2008
@@ -1521,7 +1521,9 @@ static void no_codebook_bits_offset(MLPE
     min -= offset;
     max -= offset;
 
-    lsb_bits = FFMAX(number_sbits(min), number_sbits(max));
+    lsb_bits = FFMAX(number_sbits(min), number_sbits(max)) - 1;
+
+    lsb_bits += !!lsb_bits;
 
     unsign = 1 << (lsb_bits - 1);
 



More information about the FFmpeg-soc mailing list