[FFmpeg-cvslog] r18404 - trunk/libavcodec/x86/motion_est_mmx.c

michael subversion
Thu Apr 9 23:53:48 CEST 2009


Author: michael
Date: Thu Apr  9 23:53:48 2009
New Revision: 18404

Log:
Dont use SSE2 SAD for snow as it requires more alignment than can be
easily provided.
Fixes issue315.

Modified:
   trunk/libavcodec/x86/motion_est_mmx.c

Modified: trunk/libavcodec/x86/motion_est_mmx.c
==============================================================================
--- trunk/libavcodec/x86/motion_est_mmx.c	Thu Apr  9 23:52:12 2009	(r18403)
+++ trunk/libavcodec/x86/motion_est_mmx.c	Thu Apr  9 23:53:48 2009	(r18404)
@@ -455,7 +455,7 @@ void dsputil_init_pix_mmx(DSPContext* c,
             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;
     }
 }



More information about the ffmpeg-cvslog mailing list