[FFmpeg-soc] [soc]: r2609 - alacenc/alacenc.c

jai_menon subversion at mplayerhq.hu
Tue Jul 1 03:47:23 CEST 2008


Author: jai_menon
Date: Tue Jul  1 03:47:23 2008
New Revision: 2609

Log:
predictor coeffs must be written as signed values in the bitstream. thanks to justin for spotting this major bug

Modified:
   alacenc/alacenc.c

Modified: alacenc/alacenc.c
==============================================================================
--- alacenc/alacenc.c	(original)
+++ alacenc/alacenc.c	Tue Jul  1 03:47:23 2008
@@ -283,7 +283,7 @@ static void write_compressed_frame(AlacE
         put_bits(&s->pbctx, 5, s->lpc[i].lpc_order);
         // predictor coeff. table
         for(j=0;j<s->lpc[i].lpc_order;j++) {
-            put_bits(&s->pbctx, 16, s->lpc[i].lpc_coeff[j]);
+            put_sbits(&s->pbctx, 16, s->lpc[i].lpc_coeff[j]);
         }
     }
 



More information about the FFmpeg-soc mailing list