changeset 9378:52c348a0740f libavcodec

Do not use SSE2 SAD for snow as it requires more alignment than can be easily provided. Fixes issue315.
author michael
date Thu, 09 Apr 2009 21:53:48 +0000
parents e1962586d2db
children d31c367da415
files x86/motion_est_mmx.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/x86/motion_est_mmx.c	Thu Apr 09 21:52:12 2009 +0000
+++ b/x86/motion_est_mmx.c	Thu Apr 09 21:53:48 2009 +0000
@@ -455,7 +455,7 @@
             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;
     }
 }