                  : "%eax"
          );
  }
-
 Index: libavcodec/i386/cavsdsp_mmx.c
 ===================================================================
---- libavcodec/i386/cavsdsp_mmx.c	(revision 11171)
+--- libavcodec/i386/cavsdsp_mmx.c	(revision 11270)
 +++ libavcodec/i386/cavsdsp_mmx.c	(working copy)
 @@ -23,9 +23,15 @@
   */

         : "memory"\
    );\
 }\
@@ -2967,7 +2975,6 @@
     double c = 2.0 / (len-1.0);
     int n2 = len>>1;
     long i = -n2*sizeof(int32_t);
-    long j =  n2*sizeof(int32_t);
     asm volatile(
         "movsd   %0,     %%xmm7 \n\t"
         "movapd  %1,     %%xmm6 \n\t"
@@ -2985,17 +2992,18 @@
         "movapd   %%xmm6,  %%xmm0   \n\t"\
         "subpd    %%xmm1,  %%xmm0   \n\t"\
         "pshufd   $0x4e,   %%xmm0, %%xmm1 \n\t"\
-        "cvtpi2pd (%4,%0), %%xmm2   \n\t"\
-        "cvtpi2pd (%5,%1), %%xmm3   \n\t"\
+        "cvtpi2pd (%3,%0), %%xmm2   \n\t"\
         "mulpd    %%xmm0,  %%xmm2   \n\t"\
+        "movapd   %%xmm2, (%1,%0,2) \n\t"\
+        "negl %0\n\t"\
+        "cvtpi2pd (%4,%0), %%xmm3   \n\t"\
         "mulpd    %%xmm1,  %%xmm3   \n\t"\
-        "movapd   %%xmm2, (%2,%0,2) \n\t"\
-        MOVPD"    %%xmm3, (%3,%1,2) \n\t"\
+        MOVPD"    %%xmm3, (%2,%0,2) \n\t"\
         "subpd    %%xmm5,  %%xmm7   \n\t"\
-        "sub      $8,      %1       \n\t"\
+        "negl %0\n\t"\
         "add      $8,      %0       \n\t"\
         "jl 1b                      \n\t"\
-        :"+&r"(i), "+&r"(j)\
+        :"+&r"(i)\
         :"r"(w_data+n2), "r"(w_data+len-2-n2),\
          "r"(data+n2), "r"(data+len-2-n2)\
     ); 
 
Index: libavcodec/i386/simple_idct_mmx.c
===================================================================
--- libavcodec/i386/simple_idct_mmx.c	(revision 10865)
+++ libavcodec/i386/simple_idct_mmx.c	(working copy)
@@ -363,7 +363,7 @@
         "movq " #src4 ", %%mm1          \n\t" /* R6     R2      r6      r2 */\

         "psubw %%mm5, %%mm3               \n\t" /* -6b + 3c - d */\
         "paddw %6, %%mm4                  \n\t"\
         "paddw %%mm3, %%mm4               \n\t" /* 20a - 6b + 3c - d */\
@@ -2055,7 +2055,9 @@
         "decl %2                          \n\t"\
         " jnz 1b                          \n\t"\
         : "+a"(src), "+c"(dst), "+m"(h)\
