Commit 6cbf2420 authored by Mans Rullgard's avatar Mans Rullgard
Browse files

PPC: use Altivec IMDCT only for supported sizes



The Altivec IMDCT works with size 32 and higher only.
Signed-off-by: default avatarMans Rullgard <mans@mansr.com>
parent 65614321
......@@ -141,7 +141,9 @@ av_cold void ff_fft_init_altivec(FFTContext *s)
{
#if HAVE_GNU_AS
s->fft_calc = ff_fft_calc_interleave_altivec;
s->imdct_calc = ff_imdct_calc_altivec;
s->imdct_half = ff_imdct_half_altivec;
if (s->mdct_bits >= 5) {
s->imdct_calc = ff_imdct_calc_altivec;
s->imdct_half = ff_imdct_half_altivec;
}
#endif
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment