diff options
author | Måns Rullgård <mans@mansr.com> | 2010-04-10 16:27:53 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2010-04-10 16:27:53 +0000 |
commit | f462ed1f82e4be18876786e86f472ddf7cd41fbc (patch) | |
tree | 9641a3a3f80b976bc32696b91c8649a5fbe93e18 /libavcodec/dca.c | |
parent | 38d52f3ea32413a644c4dec22264f3955f90d495 (diff) | |
download | ffmpeg-f462ed1f82e4be18876786e86f472ddf7cd41fbc.tar.gz |
Make synth_filter a function pointer
Originally committed as revision 22827 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/dca.c')
-rw-r--r-- | libavcodec/dca.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/dca.c b/libavcodec/dca.c index 960228202e..dc164e4b97 100644 --- a/libavcodec/dca.c +++ b/libavcodec/dca.c @@ -253,6 +253,7 @@ typedef struct { int debug_flag; ///< used for suppressing repeated error messages output DSPContext dsp; FFTContext imdct; + SynthFilterContext synth; } DCAContext; static const uint16_t dca_vlc_offs[] = { @@ -775,7 +776,7 @@ static void qmf_32_subbands(DCAContext * s, int chans, for (; i < 32; i++) s->raXin[i] = 0.0; - ff_synth_filter_float(&s->imdct, + s->synth.synth_filter_float(&s->imdct, s->subband_fir_hist[chans], &s->hist_index[chans], s->subband_fir_noidea[chans], prCoeff, samples_out, s->raXin, scale, bias); @@ -1298,6 +1299,7 @@ static av_cold int dca_decode_init(AVCodecContext * avctx) dsputil_init(&s->dsp, avctx); ff_mdct_init(&s->imdct, 6, 1, 1.0); + ff_synth_filter_init(&s->synth); for(i = 0; i < 6; i++) s->samples_chanptr[i] = s->samples + i * 256; |