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

kmalaussene subversion at mplayerhq.hu
Sun Feb 22 03:39:05 CET 2009


Author: kmalaussene
Date: Sun Feb 22 03:39:05 2009
New Revision: 4119

Log:
Remove pitch_lag_frac from AMRContext.

Modified:
   amr/amrnbfloatdec.c

Modified: amr/amrnbfloatdec.c
==============================================================================
--- amr/amrnbfloatdec.c	Sun Feb 22 03:33:42 2009	(r4118)
+++ amr/amrnbfloatdec.c	Sun Feb 22 03:39:05 2009	(r4119)
@@ -58,7 +58,6 @@ typedef struct AMRContext {
     float           lpc[4][LP_FILTER_ORDER]; ///< lpc coefficient vectors for 4 subframes
 
     int                       pitch_lag_int; ///< integer part of pitch lag from current subframe
-    int                      pitch_lag_frac; ///< fractional part of pitch lag from current subframe
 
     float excitation_buf[PITCH_LAG_MAX + LP_FILTER_ORDER + 1 + AMR_SUBFRAME_SIZE]; ///< excitation buffer
     float                       *excitation; ///< pointer to the current excitation vector in excitation_buf
@@ -479,14 +478,15 @@ static void interp_pitch_vector(float *p
 static void decode_pitch_vector(AMRContext *p, const AMRNBSubframe *amr_subframe, const int subframe)
 {
     int prev_pitch_lag_int = p->pitch_lag_int;
+    int pitch_lag_frac;
     // decode integer and fractional parts of pitch lag from parsed pitch
     // index
-    decode_pitch_lag(&p->pitch_lag_int, &p->pitch_lag_frac, amr_subframe->p_lag,
+    decode_pitch_lag(&p->pitch_lag_int, &pitch_lag_frac, amr_subframe->p_lag,
                      prev_pitch_lag_int, subframe, p->cur_frame_mode);
 
     // interpolate the past excitation at the pitch lag to obtain the pitch
     // vector
-    interp_pitch_vector(p->excitation, p->pitch_lag_int, p->pitch_lag_frac, p->cur_frame_mode);
+    interp_pitch_vector(p->excitation, p->pitch_lag_int, pitch_lag_frac, p->cur_frame_mode);
 }
 /// @}
 



More information about the FFmpeg-soc mailing list