[FFmpeg-devel] [PATCH] mips: Fixing HAVE_MIPSFPU dependencies

Vitor Sessak vitor1001 at gmail.com
Tue Nov 20 20:05:08 CET 2012


On 11/20/2012 03:39 PM, Bojan Zivkovic wrote:
> Signed-off-by: Bojan Zivkovic <bojan at mips.com>
> ---
>   libavutil/float_dsp.c           |    2 +-
>   libavutil/mips/Makefile         |    2 +-
>   libavutil/mips/float_dsp_mips.c |    5 +++++
>   3 files changed, 7 insertions(+), 2 deletions(-)
>
> diff --git a/libavutil/float_dsp.c b/libavutil/float_dsp.c
> index 48f67c6..dd13b3f 100644
> --- a/libavutil/float_dsp.c
> +++ b/libavutil/float_dsp.c
> @@ -50,7 +50,7 @@ void avpriv_float_dsp_init(AVFloatDSPContext *fdsp, int bit_exact)
>       ff_float_dsp_init_ppc(fdsp, bit_exact);
>   #elif ARCH_X86
>       ff_float_dsp_init_x86(fdsp);
> -#elif ARCH_MIPS
> +#elif HAVE_MIPSFPU
>       ff_float_dsp_init_mips(fdsp);
>   #endif
>   }

Can't we keep here the pattern of only ifdef'ing on the arch on common 
code and leaving the CPU details for libav*/mips/?

-Vitor



More information about the ffmpeg-devel mailing list