[Ffmpeg-cvslog] r7906 - trunk/libavcodec/i386/dsputil_h264_template_mmx.c

michael subversion
Sat Feb 10 04:56:49 CET 2007


Author: michael
Date: Sat Feb 10 04:56:49 2007
New Revision: 7906

Modified:
   trunk/libavcodec/i386/dsputil_h264_template_mmx.c

Log:
maybe fix x86_64 (untested)


Modified: trunk/libavcodec/i386/dsputil_h264_template_mmx.c
==============================================================================
--- trunk/libavcodec/i386/dsputil_h264_template_mmx.c	(original)
+++ trunk/libavcodec/i386/dsputil_h264_template_mmx.c	Sat Feb 10 04:56:49 2007
@@ -263,7 +263,7 @@
 }
 
 #ifdef H264_CHROMA_MC2_TMPL
-static void H264_CHROMA_MC2_TMPL(uint8_t *dst/*align 2*/, uint8_t *src/*align 1*/, int stride, int h, int x, int y)
+static void H264_CHROMA_MC2_TMPL(uint8_t *dst/*align 2*/, uint8_t *src/*align 1*/, long stride, int h, int x, int y)
 {
     int tmp = ((1<<16)-1)*x + 8;
     int CD= tmp*y;
@@ -306,8 +306,8 @@
             * ok because partitions are processed from left to right. */
         H264_CHROMA_OP4((%0), %%mm1, %%mm3)
         "movd %%mm1, (%0)\n\t"
-        "addl %4, %0\n\t"
-        "subl $1, %2\n\t"
+        "add %4, %0\n\t"
+        "sub $1, %2\n\t"
         "jnz 1b\n\t"
         : "+r" (dst), "+r"(src), "+r"(h) : "m" (ff_pw_32), "r"(stride));
 




More information about the ffmpeg-cvslog mailing list