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

cmcq subversion at mplayerhq.hu
Wed Jul 22 18:22:14 CEST 2009


Author: cmcq
Date: Wed Jul 22 18:22:14 2009
New Revision: 4774

Log:
Add comment regarding r4739 (lsf_avg should be updated later)

Modified:
   amr/amrnbfloatdec.c

Modified: amr/amrnbfloatdec.c
==============================================================================
--- amr/amrnbfloatdec.c	Wed Jul 22 18:17:50 2009	(r4773)
+++ amr/amrnbfloatdec.c	Wed Jul 22 18:22:14 2009	(r4774)
@@ -1163,7 +1163,12 @@ int amrnb_decode_frame(AVCodecContext *a
         update_state(p);
     }
 
-    // update averaged lsf vector (used for fixed gain smoothing)
+    /* Update averaged lsf vector (used for fixed gain smoothing).
+     *
+     * Note that lsf_avg should not incorporate the current frame's LSFs
+     * for fixed_gain_smooth.
+     * The specification has an incorrect formula: the reference decoder uses
+     * qbar(n-1) rather than qbar(n) in section 6.1(4) equation 71. */
     ff_weighted_vector_sumf(p->lsf_avg, p->lsf_avg, p->lsf_q[3],
                             0.84, 0.16, LP_FILTER_ORDER);
 


More information about the FFmpeg-soc mailing list