Diego Biurrun <[email protected]> writes:

> @@ -877,11 +878,10 @@ static void ff_snow_inner_add_yblock_mmx(const uint8_t 
> *obmc, const int obmc_str
>  
>  void ff_dwt_init_x86(DWTContext *c)
>  {
> -#if HAVE_INLINE_ASM
>      int mm_flags = av_get_cpu_flags();
>  
> -    if (mm_flags & AV_CPU_FLAG_MMX) {
> -        if(mm_flags & AV_CPU_FLAG_SSE2 & 0){
> +    if (INLINE_MMX(mm_flags)) {
> +        if (INLINE_SSE2(mm_flags) && 0) {
>              c->horizontal_compose97i = ff_snow_horizontal_compose97i_sse2;
>  #if HAVE_7REGS
>              c->vertical_compose97i = ff_snow_vertical_compose97i_sse2;
> @@ -889,7 +889,7 @@ void ff_dwt_init_x86(DWTContext *c)
>              c->inner_add_yblock = ff_snow_inner_add_yblock_sse2;
>          }
>          else{
> -            if (mm_flags & AV_CPU_FLAG_MMXEXT) {
> +            if (INLINE_MMXEXT(mm_flags)) {
>              c->horizontal_compose97i = ff_snow_horizontal_compose97i_mmx;
>  #if HAVE_7REGS
>              c->vertical_compose97i = ff_snow_vertical_compose97i_mmx;
> @@ -898,5 +898,4 @@ void ff_dwt_init_x86(DWTContext *c)
>              c->inner_add_yblock = ff_snow_inner_add_yblock_mmx;
>          }
>      }
> -#endif /* HAVE_INLINE_ASM */

These probably break if HAVE_INLINE_ASM is not enabled.

-- 
Måns Rullgård
[email protected]
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to