| Index: source/patched-ffmpeg-mt/libavcodec/x86/cavsdsp_mmx.c
|
| ===================================================================
|
| --- source/patched-ffmpeg-mt/libavcodec/x86/cavsdsp_mmx.c (revision 59334)
|
| +++ source/patched-ffmpeg-mt/libavcodec/x86/cavsdsp_mmx.c (working copy)
|
| @@ -23,6 +23,7 @@
|
| */
|
|
|
| #include "libavutil/common.h"
|
| +#include "libavutil/cpu.h"
|
| #include "libavutil/x86_cpu.h"
|
| #include "libavcodec/dsputil.h"
|
| #include "libavcodec/cavsdsp.h"
|
| @@ -173,7 +174,7 @@
|
| );
|
| }
|
|
|
| - add_pixels_clamped_mmx(b2, dst, stride);
|
| + ff_add_pixels_clamped_mmx(b2, dst, stride);
|
| }
|
|
|
| /*****************************************************************************
|
| @@ -472,8 +473,8 @@
|
|
|
| void ff_cavsdsp_init_mmx(CAVSDSPContext *c, AVCodecContext *avctx)
|
| {
|
| - int mm_flags = mm_support();
|
| + int mm_flags = av_get_cpu_flags();
|
|
|
| - if (mm_flags & FF_MM_MMX2) ff_cavsdsp_init_mmx2 (c, avctx);
|
| - if (mm_flags & FF_MM_3DNOW) ff_cavsdsp_init_3dnow(c, avctx);
|
| + if (mm_flags & AV_CPU_FLAG_MMX2) ff_cavsdsp_init_mmx2 (c, avctx);
|
| + if (mm_flags & AV_CPU_FLAG_3DNOW) ff_cavsdsp_init_3dnow(c, avctx);
|
| }
|
|
|