summaryrefslogtreecommitdiff
path: root/libavcodec/x86/vp56dsp.asm
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2010-08-25 15:41:11 +0000
committerMåns Rullgård <mans@mansr.com>2010-08-25 15:41:11 +0000
commit69dad87c4867135ae7221b3fd872f91df8d96e5c (patch)
treed2e3a11768b7f520ddb59d2a9df5c57a88337b6d /libavcodec/x86/vp56dsp.asm
parent7934b15d5a12796da9db28441e105520bb57f2e2 (diff)
VP6: fix vp6_filter_diag4_mmx/sse on 64-bit
The stride can be negative and must be sign extended before being used in pointer arithmetic. Originally committed as revision 24926 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/x86/vp56dsp.asm')
-rw-r--r--libavcodec/x86/vp56dsp.asm3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/x86/vp56dsp.asm b/libavcodec/x86/vp56dsp.asm
index 217e63a078..1b3165e54a 100644
--- a/libavcodec/x86/vp56dsp.asm
+++ b/libavcodec/x86/vp56dsp.asm
@@ -127,6 +127,9 @@ cglobal vp6_filter_diag4_%1, 5, 7, %2
sub rsp, 8*15
movq m6, [pw_64]
%endif
+%ifdef ARCH_X86_64
+ movsxd r2, r2d
+%endif
sub r1, r2