On 10/02/16 22:10, Diego Biurrun wrote:
> ---
> 
> Reversed the ifdefs, as suggested by Luca.
> 
>  libavcodec/ppc/fft_altivec.S | 4 ++--
>  libavcodec/ppc/fft_init.c    | 2 +-
>  2 files changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/libavcodec/ppc/fft_altivec.S b/libavcodec/ppc/fft_altivec.S
> index c92b30b..cb7c871 100644
> --- a/libavcodec/ppc/fft_altivec.S
> +++ b/libavcodec/ppc/fft_altivec.S
> @@ -40,7 +40,7 @@
>  
>  #include "config.h"
>  
> -#if HAVE_GNU_AS && HAVE_ALTIVEC
> +#if HAVE_GNU_AS && HAVE_ALTIVEC && HAVE_BIGENDIAN
>  
>  #include "asm.S"
>  
> @@ -451,4 +451,4 @@ fft_dispatch_tab\suffix\()_altivec:
>  DECL_FFTS 0
>  DECL_FFTS 1, _interleave
>  
> -#endif /* HAVE_GNU_AS && HAVE_ALTIVEC */
> +#endif /* HAVE_GNU_AS && HAVE_ALTIVEC && HAVE_BIGENDIAN */
> diff --git a/libavcodec/ppc/fft_init.c b/libavcodec/ppc/fft_init.c
> index 9e79f70..aef7e46 100644
> --- a/libavcodec/ppc/fft_init.c
> +++ b/libavcodec/ppc/fft_init.c
> @@ -152,5 +152,5 @@ av_cold void ff_fft_init_ppc(FFTContext *s)
>          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 */
>  }
> 

Should work fine, thank you!
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to