mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-27 13:10:37 +00:00
lavc/ppc/fft_init: Fix compilation on ppc64le with --disable-vsx.
This commit is contained in:
parent
fb934f23e1
commit
c87bb9c04a
@ -42,7 +42,7 @@ void ff_fft_calc_altivec(FFTContext *s, FFTComplex *z);
|
||||
void ff_fft_calc_interleave_altivec(FFTContext *s, FFTComplex *z);
|
||||
#endif
|
||||
|
||||
#if HAVE_GNU_AS && HAVE_ALTIVEC
|
||||
#if HAVE_GNU_AS && HAVE_ALTIVEC && (HAVE_BIGENDIAN || HAVE_VSX)
|
||||
static void imdct_half_altivec(FFTContext *s, FFTSample *output, const FFTSample *input)
|
||||
{
|
||||
int j, k;
|
||||
@ -146,11 +146,11 @@ static void imdct_calc_altivec(FFTContext *s, FFTSample *output, const FFTSample
|
||||
p1[k] = vec_perm(b, b, vcprm(3,2,1,0));
|
||||
}
|
||||
}
|
||||
#endif /* HAVE_GNU_AS && HAVE_ALTIVEC && HAVE_BIGENDIAN */
|
||||
#endif /* HAVE_GNU_AS && HAVE_ALTIVEC && (HAVE_BIGENDIAN || HAVE_VSX) */
|
||||
|
||||
av_cold void ff_fft_init_ppc(FFTContext *s)
|
||||
{
|
||||
#if HAVE_GNU_AS && HAVE_ALTIVEC
|
||||
#if HAVE_GNU_AS && HAVE_ALTIVEC && (HAVE_BIGENDIAN || HAVE_VSX)
|
||||
if (!PPC_ALTIVEC(av_get_cpu_flags()))
|
||||
return;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user