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

ramiro subversion at mplayerhq.hu
Thu Aug 21 21:40:52 CEST 2008


Author: ramiro
Date: Thu Aug 21 21:40:52 2008
New Revision: 3517

Log:
Use codebook (and not codebook_index) for calculations.

Modified:
   mlp/mlpenc.c

Modified: mlp/mlpenc.c
==============================================================================
--- mlp/mlpenc.c	(original)
+++ mlp/mlpenc.c	Thu Aug 21 21:40:52 2008
@@ -1192,9 +1192,9 @@ static void write_block_data(MLPEncodeCo
 
         sign_shift = lsb_bits[ch] - 1;
 
-        if (codebook_index[ch] >= 0) {
+        if (cp->codebook > 0) {
             sign_huff_offset[ch] -= 7 << lsb_bits[ch];
-            sign_shift += 2 - codebook_index[ch];
+            sign_shift += 3 - cp->codebook;
         }
 
         /* Unsign if needed. */



More information about the FFmpeg-soc mailing list