Browse Source

amrnbdec: Apply AMR_SAMPLE_SCALE when finishing the decoder output

The output scaling was accidentally removed in rev 22937.

Originally committed as revision 23012 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.6
Martin Storsjö 15 years ago
parent
commit
fa36165adf
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      libavcodec/amrnbdec.c

+ 2
- 1
libavcodec/amrnbdec.c View File

@@ -1043,7 +1043,8 @@ static int amrnb_decode_frame(AVCodecContext *avctx, void *data, int *data_size,
} }


ff_acelp_apply_order_2_transfer_function(buf_out, buf_out, highpass_zeros, 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); p->high_pass_mem, AMR_BLOCK_SIZE);


/* Update averaged lsf vector (used for fixed gain smoothing). /* Update averaged lsf vector (used for fixed gain smoothing).


Loading…
Cancel
Save