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

jai_menon subversion at mplayerhq.hu
Sun Jun 22 19:51:38 CEST 2008


Author: jai_menon
Date: Sun Jun 22 19:51:38 2008
New Revision: 2550

Log:
pass channel index to the entropy coder

Modified:
   alacenc/alacenc.c

Modified: alacenc/alacenc.c
==============================================================================
--- alacenc/alacenc.c	(original)
+++ alacenc/alacenc.c	Sun Jun 22 19:51:38 2008
@@ -150,10 +150,11 @@ static void first_order_predictor(AlacEn
     }
 }
 
-static void alac_entropy_coder(AlacEncodeContext *s, int32_t *samples)
+static void alac_entropy_coder(AlacEncodeContext *s, int ch)
 {
     unsigned int history = s->rc.initial_history;
     int sign_modifier = 0, i = 0, k;
+    int32_t *samples = s->sample_buf[ch];
 
     while(i < s->avctx->frame_size) {
         int x;
@@ -219,7 +220,7 @@ static void write_compressed_frame(AlacE
 
     for(i=0;i<s->channels;i++) {
         first_order_predictor(s, i);
-        alac_entropy_coder(s, s->sample_buf[i]);
+        alac_entropy_coder(s, i);
     }
 }
 



More information about the FFmpeg-soc mailing list