diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2011-01-13 15:28:06 -0500 |
---|---|---|
committer | Mans Rullgard <mans@mansr.com> | 2011-01-22 17:53:28 +0000 |
commit | 3b924294ea0ab891cf28fb30f26962a7960f7f37 (patch) | |
tree | 8ba0fef5760cd4f4f863ac70d627f930863038e8 /libavcodec/ac3enc.c | |
parent | 6eabb0d3ad42b91c1b4c298718c29961f7c1653a (diff) | |
download | ffmpeg-3b924294ea0ab891cf28fb30f26962a7960f7f37.tar.gz |
ac3enc: use dsputil functions in apply_window()
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavcodec/ac3enc.c')
-rw-r--r-- | libavcodec/ac3enc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/ac3enc.c b/libavcodec/ac3enc.c index e59916cc6f..f058d79882 100644 --- a/libavcodec/ac3enc.c +++ b/libavcodec/ac3enc.c @@ -161,7 +161,7 @@ static av_cold int mdct_init(AVCodecContext *avctx, AC3MDCTContext *mdct, static void mdct512(AC3MDCTContext *mdct, CoefType *out, SampleType *in); -static void apply_window(SampleType *output, const SampleType *input, +static void apply_window(DSPContext *dsp, SampleType *output, const SampleType *input, const SampleType *window, int n); static int normalize_samples(AC3EncodeContext *s); @@ -262,7 +262,7 @@ static void apply_mdct(AC3EncodeContext *s) AC3Block *block = &s->blocks[blk]; const SampleType *input_samples = &s->planar_samples[ch][blk * AC3_BLOCK_SIZE]; - apply_window(s->windowed_samples, input_samples, s->mdct.window, AC3_WINDOW_SIZE); + apply_window(&s->dsp, s->windowed_samples, input_samples, s->mdct.window, AC3_WINDOW_SIZE); block->exp_shift[ch] = normalize_samples(s); |