Also fix #endif comments in the FFT init code.
-#if HAVE_GNU_AS && HAVE_ALTIVEC
+#if HAVE_GNU_AS && HAVE_ALTIVEC && HAVE_BIGENDIAN
DECL_FFTS 0
DECL_FFTS 1, _interleave
DECL_FFTS 0
DECL_FFTS 1, _interleave
-#endif /* HAVE_GNU_AS && HAVE_ALTIVEC */
+#endif /* HAVE_GNU_AS && HAVE_ALTIVEC && HAVE_BIGENDIAN */
p1[k] = vec_perm(b, b, vcprm(3,2,1,0));
}
}
p1[k] = vec_perm(b, b, vcprm(3,2,1,0));
}
}
-#endif /* HAVE_GNU_AS && HAVE_ALTIVEC */
+#endif /* HAVE_GNU_AS && HAVE_ALTIVEC && HAVE_BIGENDIAN */
av_cold void ff_fft_init_ppc(FFTContext *s)
{
av_cold void ff_fft_init_ppc(FFTContext *s)
{
s->imdct_calc = imdct_calc_altivec;
s->imdct_half = imdct_half_altivec;
}
s->imdct_calc = imdct_calc_altivec;
s->imdct_half = imdct_half_altivec;
}
-#endif /* HAVE_GNU_AS && HAVE_ALTIVEC */
+#endif /* HAVE_GNU_AS && HAVE_ALTIVEC && HAVE_BIGENDIAN */