[FFmpeg-cvslog] sws: replace long by x86_reg in x86 asm

Michael Niedermayer git at videolan.org
Mon Oct 24 12:29:45 CEST 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Oct 24 12:23:51 2011 +0200| [b616600516a0b46c365ee4fbd65167d6d276a9ad] | committer: Michael Niedermayer

sws: replace long by x86_reg in x86 asm

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b616600516a0b46c365ee4fbd65167d6d276a9ad
---

 libswscale/x86/swscale_template.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libswscale/x86/swscale_template.c b/libswscale/x86/swscale_template.c
index 2659c54..0f17717 100644
--- a/libswscale/x86/swscale_template.c
+++ b/libswscale/x86/swscale_template.c
@@ -127,7 +127,7 @@ static void RENAME(yuv2yuv1_ar)(const int16_t *src, uint8_t *dst, int dstW, cons
         "add                   $8, %%"REG_a"  \n\t"
         "jnc                   1b             \n\t"
         :: "r" (src + dstW), "r" (dst + dstW),
-           "g" ((long)-dstW)
+           "g" ((x86_reg)-dstW)
         : "%"REG_a
     );
 }



More information about the ffmpeg-cvslog mailing list