changeset 11676:ceec2fb08b8e libavcodec

amrnbdec: Apply AMR_SAMPLE_SCALE when finishing the decoder output The output scaling was accidentally removed in rev 22937.
author mstorsjo
date Mon, 03 May 2010 05:57:48 +0000
parents 5c1363c233b8
children ed3d232c9d31
files amrnbdec.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/amrnbdec.c	Sun May 02 21:52:25 2010 +0000
+++ b/amrnbdec.c	Mon May 03 05:57:48 2010 +0000
@@ -1043,7 +1043,8 @@
     }
 
     ff_acelp_apply_order_2_transfer_function(buf_out, buf_out, highpass_zeros,
-                                             highpass_poles, highpass_gain,
+                                             highpass_poles,
+                                             highpass_gain * AMR_SAMPLE_SCALE,
                                              p->high_pass_mem, AMR_BLOCK_SIZE);
 
     /* Update averaged lsf vector (used for fixed gain smoothing).