diff i386/dsputil_mmx.c @ 5594:384629ebcb93 libavcodec

avoid overflow in the 3rd lifting step, this now needs mmx2 at minimum (patch for plain mmx support is welcome ...)
author michael
date Sun, 26 Aug 2007 01:11:02 +0000
parents 642588a60570
children b26025b9586d
line wrap: on
line diff
--- a/i386/dsputil_mmx.c	Sat Aug 25 19:04:33 2007 +0000
+++ b/i386/dsputil_mmx.c	Sun Aug 26 01:11:02 2007 +0000
@@ -3627,8 +3627,10 @@
             c->inner_add_yblock = ff_snow_inner_add_yblock_sse2;
         }
         else{
+            if(mm_flags & MM_MMXEXT){
             c->horizontal_compose97i = ff_snow_horizontal_compose97i_mmx;
             c->vertical_compose97i = ff_snow_vertical_compose97i_mmx;
+            }
             c->inner_add_yblock = ff_snow_inner_add_yblock_mmx;
         }
 #endif