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

jai_menon subversion at mplayerhq.hu
Mon Jul 28 10:18:21 CEST 2008


Author: jai_menon
Date: Mon Jul 28 10:18:20 2008
New Revision: 2872

Log:
fix bug in 1st order prediction code

Modified:
   alacenc/alacenc.c

Modified: alacenc/alacenc.c
==============================================================================
--- alacenc/alacenc.c	(original)
+++ alacenc/alacenc.c	Mon Jul 28 10:18:20 2008
@@ -160,7 +160,7 @@ static void alac_linear_predictor(AlacEn
     LPCContext lpc = s->lpc[ch];
 
     if(lpc.lpc_order == 31) {
-        s->predictor_buf[0] = s->sample_buf[0];
+        s->predictor_buf[0] = s->sample_buf[ch][0];
         i = s->avctx->frame_size - 1;
         while(i > 0) {
             s->predictor_buf[i] = s->sample_buf[ch][i] - s->sample_buf[ch][i-1];



More information about the FFmpeg-soc mailing list