# HG changeset patch # User michael # Date 1239314028 0 # Node ID 52c348a0740fa8c4d67ee5c6e6024b029b5bac6c # Parent e1962586d2dbd999d2ef7ba5e64b6f3844c80f4b Do not use SSE2 SAD for snow as it requires more alignment than can be easily provided. Fixes issue315. diff -r e1962586d2db -r 52c348a0740f x86/motion_est_mmx.c --- 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; } }