On 10/02/16 19:20, Diego Biurrun wrote:
> ---
> libavcodec/ppc/fft_init.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/libavcodec/ppc/fft_init.c b/libavcodec/ppc/fft_init.c
> index 9e79f70..be9e3ad 100644
> --- a/libavcodec/ppc/fft_init.c
> +++ b/libavcodec/ppc/fft_init.c
> @@ -143,14 +143,16 @@ static void imdct_calc_altivec(FFTContext *s, FFTSample
> *output, const FFTSample
>
> av_cold void ff_fft_init_ppc(FFTContext *s)
> {
> -#if HAVE_GNU_AS && HAVE_ALTIVEC && HAVE_BIGENDIAN
> +#if HAVE_GNU_AS && HAVE_ALTIVEC
> if (!PPC_ALTIVEC(av_get_cpu_flags()))
> return;
>
> s->fft_calc = ff_fft_calc_interleave_altivec;
> +#if HAVE_BIGENDIAN
> if (s->mdct_bits >= 5) {
> s->imdct_calc = imdct_calc_altivec;
> s->imdct_half = imdct_half_altivec;
> }
> +#endif /* HAVE_BIGENDIAN */
> #endif /* HAVE_GNU_AS && HAVE_ALTIVEC */
> }
>
It should break in funny way power8le.
lu
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel