[FFmpeg-soc] [soc]: r5140 - amr/amrnbdec.c
cmcq
subversion at mplayerhq.hu
Sat Aug 15 22:09:09 CEST 2009
Author: cmcq
Date: Sat Aug 15 22:09:08 2009
New Revision: 5140
Log:
Use a more specific name for the function that ensures LSF stability
Modified:
amr/amrnbdec.c
Modified: amr/amrnbdec.c
==============================================================================
--- amr/amrnbdec.c Sat Aug 15 22:04:50 2009 (r5139)
+++ amr/amrnbdec.c Sat Aug 15 22:09:08 2009 (r5140)
@@ -217,7 +217,7 @@ static void interpolate_lsf(float lsf_q[
*
* @param[in,out] lsf LSFs in Hertz
*/
-static void adjust_lsf(float *lsf)
+static void make_increasing(float *lsf)
{
int i;
float prev = 0.0;
@@ -261,7 +261,7 @@ static void lsf2lsp_for_mode122(AMRConte
for (i = 0; i < LP_FILTER_ORDER; i++)
lsf_q[i] = lsf_r[i] * LSF_R_FAC + lsf_no_r[i];
- adjust_lsf(lsf_q);
+ make_increasing(lsf_q);
if (update)
interpolate_lsf(p->lsf_q, lsf_q);
@@ -324,7 +324,7 @@ static void lsf2lsp_3(AMRContext *p)
for (i = 0; i < LP_FILTER_ORDER; i++)
lsf_q[i] = (lsf_r[i] + p->prev_lsf_r[i] * pred_fac[i]) * LSF_R_FAC + lsf_3_mean[i];
- adjust_lsf(lsf_q);
+ make_increasing(lsf_q);
// store data for computing the next frame's LSFs
interpolate_lsf(p->lsf_q, lsf_q);
More information about the FFmpeg-soc
mailing list