PPC: use Altivec IMDCT only for supported sizes
The Altivec IMDCT works with size 32 and higher only. Signed-off-by: Mans Rullgard <mans@mansr.com>
This commit is contained in:
parent
65614321db
commit
6cbf2420b9
@ -141,7 +141,9 @@ av_cold void ff_fft_init_altivec(FFTContext *s)
|
|||||||
{
|
{
|
||||||
#if HAVE_GNU_AS
|
#if HAVE_GNU_AS
|
||||||
s->fft_calc = ff_fft_calc_interleave_altivec;
|
s->fft_calc = ff_fft_calc_interleave_altivec;
|
||||||
s->imdct_calc = ff_imdct_calc_altivec;
|
if (s->mdct_bits >= 5) {
|
||||||
s->imdct_half = ff_imdct_half_altivec;
|
s->imdct_calc = ff_imdct_calc_altivec;
|
||||||
|
s->imdct_half = ff_imdct_half_altivec;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user