tag 299700 + patch
thanks

Hi,

I've made a patch for this.

This seems to only happen when using -DPIC.  Then the size of tha
argument is wrong.  The attached version should work for both
i386 and amd64, but I haven't tested it.


Kurt

--- libavcodec/libpostproc/postprocess_template.c.old   2005-03-19 
21:47:36.884457424 +0100
+++ libavcodec/libpostproc/postprocess_template.c       2005-03-19 
21:48:07.731767920 +0100
@@ -3197,7 +3197,7 @@
 #ifdef HAVE_MMX
                                        asm volatile(
 #ifdef PIC
-                                               "pushl %%"REG_d"        \n\t"
+                                               "push %%"REG_d"        \n\t"
 #endif
                                                "movq (%%"REG_a"), %%mm2        
\n\t" // packedYOffset
                                                "movq 8(%%"REG_a"), %%mm3       
\n\t" // packedYScale
@@ -3265,7 +3265,7 @@
                                                "lea (%%"REG_d",%5,4), 
%%"REG_d"        \n\t"
 SCALED_CPY((%%REGa, %4), (%%REGa, %4, 2), (%%REGd, %5), (%%REGd, %5, 2))
 #ifdef PIC
-                                               "popl %%"REG_d"         \n\t"
+                                               "pop %%"REG_d"         \n\t"
 #endif
 
 
@@ -3290,7 +3290,7 @@
 #ifdef HAVE_MMX
                                        asm volatile(
 #ifdef PIC
-                                               "pushl %%"REG_d"        \n\t"
+                                               "push %%"REG_d"        \n\t"
 #endif
                                                "lea (%0,%2), %%"REG_a" \n\t"
                                                "lea (%1,%3), %%"REG_d" \n\t"
@@ -3311,7 +3311,7 @@
                                                "lea (%%"REG_d",%3,4), 
%%"REG_d"        \n\t"
 SIMPLE_CPY((%%REGa, %2), (%%REGa, %2, 2), (%%REGd, %3), (%%REGd, %3, 2))
 #ifdef PIC
-                                               "popl %%"REG_d"         \n\t"
+                                               "pop %%"REG_d"         \n\t"
 #endif
 
                                                : : "r" (src),

Reply via email to