summaryrefslogtreecommitdiffstats
path: root/libavcodec/ac3enc_template.c
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2011-08-07 17:51:13 -0400
committerJustin Ruggles <justin.ruggles@gmail.com>2011-09-05 10:07:43 -0400
commita0d17b6d45b8550bd8826baa9f8eb4e1a596525a (patch)
tree18d1073d0bc3d1cd12939c64912b89f935d4a4f3 /libavcodec/ac3enc_template.c
parent3e5722a8cadd8b4a7f92110b9a0b2f48883f1243 (diff)
downloadffmpeg-streaming-a0d17b6d45b8550bd8826baa9f8eb4e1a596525a.zip
ffmpeg-streaming-a0d17b6d45b8550bd8826baa9f8eb4e1a596525a.tar.gz
ac3enc: scale floating-point coupling channel coefficients in
scale_coefficients() rather than in apply_channel_coupling()
Diffstat (limited to 'libavcodec/ac3enc_template.c')
-rw-r--r--libavcodec/ac3enc_template.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/libavcodec/ac3enc_template.c b/libavcodec/ac3enc_template.c
index 3db49de..e7b8967 100644
--- a/libavcodec/ac3enc_template.c
+++ b/libavcodec/ac3enc_template.c
@@ -168,10 +168,6 @@ static void apply_channel_coupling(AC3EncodeContext *s)
/* coefficients must be clipped in order to be encoded */
clip_coefficients(&s->dsp, cpl_coef, num_cpl_coefs);
-
- /* scale coupling coefficients from float to 24-bit fixed-point */
- s->ac3dsp.float_to_fixed24(&block->fixed_coef[CPL_CH][cpl_start],
- cpl_coef, num_cpl_coefs);
}
/* calculate energy in each band in coupling channel and each fbw channel */
OpenPOWER on IntegriCloud