]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/x86/motion_est_mmx.c
Move autocorrelation function from flacenc.c to lpc.c. Also rename the
[ffmpeg] / libavcodec / x86 / motion_est_mmx.c
index e61a1ba4e5c05e832cf5ba49fe51181fd5e56a1e..079d604cb5dd3e80ff5eaa01023dab254ab1ed11 100644 (file)
@@ -24,6 +24,7 @@
 
 #include "libavutil/x86_cpu.h"
 #include "libavcodec/dsputil.h"
+#include "dsputil_mmx.h"
 
 DECLARE_ASM_CONST(8, uint64_t, round_tab[3])={
 0x0000000000000000ULL,
@@ -455,7 +456,7 @@ void dsputil_init_pix_mmx(DSPContext* c, AVCodecContext *avctx)
             c->pix_abs[1][3] = sad8_xy2_mmx2;
         }
     }
-    if ((mm_flags & FF_MM_SSE2) && !(mm_flags & FF_MM_3DNOW)) {
+    if ((mm_flags & FF_MM_SSE2) && !(mm_flags & FF_MM_3DNOW) && avctx->codec_id != CODEC_ID_SNOW) {
         c->sad[0]= sad16_sse2;
     }
 }