comparison amrnbdec.c @ 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 8b6f3d3b55cb
children 2dd67ed2f947
comparison
equal deleted inserted replaced
11675:5c1363c233b8 11676:ceec2fb08b8e
1041 ff_clear_fixed_vector(p->fixed_vector, &fixed_sparse, AMR_SUBFRAME_SIZE); 1041 ff_clear_fixed_vector(p->fixed_vector, &fixed_sparse, AMR_SUBFRAME_SIZE);
1042 update_state(p); 1042 update_state(p);
1043 } 1043 }
1044 1044
1045 ff_acelp_apply_order_2_transfer_function(buf_out, buf_out, highpass_zeros, 1045 ff_acelp_apply_order_2_transfer_function(buf_out, buf_out, highpass_zeros,
1046 highpass_poles, highpass_gain, 1046 highpass_poles,
1047 highpass_gain * AMR_SAMPLE_SCALE,
1047 p->high_pass_mem, AMR_BLOCK_SIZE); 1048 p->high_pass_mem, AMR_BLOCK_SIZE);
1048 1049
1049 /* Update averaged lsf vector (used for fixed gain smoothing). 1050 /* Update averaged lsf vector (used for fixed gain smoothing).
1050 * 1051 *
1051 * Note that lsf_avg should not incorporate the current frame's LSFs 1052 * Note that lsf_avg should not incorporate the current frame's LSFs