arm: fix use of uninitialised value in ff_fft_fixed_init_arm()
authorMans Rullgard <mans@mansr.com>
Thu, 6 Dec 2012 23:51:01 +0000 (23:51 +0000)
committerMans Rullgard <mans@mansr.com>
Fri, 7 Dec 2012 13:11:57 +0000 (13:11 +0000)
commit92dad6687f59a6e599834218626e524eb8a5bdae
tree45461e4c47aa6cf206f5ae80f7ba13da15d84b94
parent2c9639227766fea9a8109f82378b312a8d32a1ee
arm: fix use of uninitialised value in ff_fft_fixed_init_arm()

When initialising an FFTContext for a plain FFT, mdct_bits is not set
and can contain a garbage value.  Since nbits is always valid and for
MDCT operation is mdct_bits - 2 checking this instead avoids using an
uninitialised value while having the same effect.

Signed-off-by: Mans Rullgard <mans@mansr.com>
libavcodec/arm/fft_fixed_init_arm.c