diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-09-23 22:31:57 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-09-23 22:31:57 +0200 |
commit | ad51833a1a0a31ea39fa5542c1ec3851feb6630c (patch) | |
tree | 89e71b463694f4a8e70c4f24978ee28b39173780 /libavcodec | |
parent | abe0dbea2e228621e97184e39159d189b6085fe3 (diff) | |
download | ffmpeg-ad51833a1a0a31ea39fa5542c1ec3851feb6630c.tar.gz |
aacsbr: prevent multiple ff_aac_sbr_ctx_init()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/aacsbr.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/aacsbr.c b/libavcodec/aacsbr.c index 10b8daf280..a213827132 100644 --- a/libavcodec/aacsbr.c +++ b/libavcodec/aacsbr.c @@ -131,6 +131,8 @@ av_cold void ff_aac_sbr_init(void) av_cold void ff_aac_sbr_ctx_init(AACContext *ac, SpectralBandReplication *sbr) { float mdct_scale; + if(sbr->mdct.mdct_bits) + return; sbr->kx[0] = sbr->kx[1] = 32; //Typo in spec, kx' inits to 32 sbr->data[0].e_a[1] = sbr->data[1].e_a[1] = -1; sbr->data[0].synthesis_filterbank_samples_offset = SBR_SYNTHESIS_BUF_SIZE - (1280 - 128); |