]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
Dont use SSE2 SAD for snow as it requires more alignment than can be
authormichael <michael@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Thu, 9 Apr 2009 21:53:48 +0000 (21:53 +0000)
committermichael <michael@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Thu, 9 Apr 2009 21:53:48 +0000 (21:53 +0000)
easily provided.
Fixes issue315.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18404 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavcodec/x86/motion_est_mmx.c

index e61a1ba4e5c05e832cf5ba49fe51181fd5e56a1e..4673ebc853ecfd9a7ca2c0dea7814049396bffdd 100644 (file)
@@ -455,7 +455,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;
     }
 }