aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2017-12-07 18:09:00 -0300
committerJames Almer <jamrial@gmail.com>2017-12-07 19:34:12 -0300
commitdc33fe1d0080e932faa9fe3c7fb4850dfde161a8 (patch)
treea285b4ea40cab820d5b17e7c252f78ede23627e1 /libavfilter
parent79a744768aa6f498e4f46fca4ff01cd04eade9a5 (diff)
downloadffmpeg-dc33fe1d0080e932faa9fe3c7fb4850dfde161a8.tar.gz
x86/vf_hflip: don't load the width argument twice
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/x86/vf_hflip.asm5
1 files changed, 2 insertions, 3 deletions
diff --git a/libavfilter/x86/vf_hflip.asm b/libavfilter/x86/vf_hflip.asm
index d14cc086e5..9f262ece5c 100644
--- a/libavfilter/x86/vf_hflip.asm
+++ b/libavfilter/x86/vf_hflip.asm
@@ -33,7 +33,7 @@ INIT_XMM ssse3
cglobal hflip_byte, 3, 5, 3, src, dst, w, r, x
mova m0, [pb_flip_byte]
mov xq, 0
- mov wd, dword wm
+ movsxdifnidn wq, wd
mov rq, wq
and rq, 2 * mmsize - 1
cmp wq, 2 * mmsize
@@ -71,8 +71,7 @@ RET
cglobal hflip_short, 3, 5, 3, src, dst, w, r, x
mova m0, [pb_flip_short]
mov xq, 0
- mov wd, dword wm
- add wq, wq
+ add wd, wd
mov rq, wq
and rq, 2 * mmsize - 1
cmp wq, 2 * mmsize