[FFmpeg-soc] [soc]: r1514 - amr/amrnbfloatdec.c

superdump subversion at mplayerhq.hu
Tue Dec 4 01:51:09 CET 2007


Author: superdump
Date: Tue Dec  4 01:51:09 2007
New Revision: 1514

Log:
Add missing mode var


Modified:
   amr/amrnbfloatdec.c

Modified: amr/amrnbfloatdec.c
==============================================================================
--- amr/amrnbfloatdec.c	(original)
+++ amr/amrnbfloatdec.c	Tue Dec  4 01:51:09 2007
@@ -806,7 +806,7 @@ static void decode_10_pulses_35bits(int1
  * @return Returns the predicted fixed gain
  */
 
-static float fixed_gain_prediction(float *fixed_vector, float *prev_pred_error) {
+static float fixed_gain_prediction(float *fixed_vector, float *prev_pred_error, enum Mode mode) {
     int i;
     float energy_pred = 0.0, energy_fixed_mean = 0.0;
 
@@ -1090,7 +1090,7 @@ static int amrnb_decode_frame(AVCodecCon
 /*** gain decoding ***/
 
         // calculate the predicted fixed gain g_c'
-        p->fixed_gain[4] = fixed_gain_prediction(&p->fixed_vector, &p->prediction_error);
+        p->fixed_gain[4] = fixed_gain_prediction(&p->fixed_vector, &p->prediction_error, p->cur_frame_mode);
 
         // decode pitch gain and fixed gain correction factor
         if(p->cur_frame_mode == MODE_122) {



More information about the FFmpeg-soc mailing list