aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/x86/hevc_mc.asm
diff options
context:
space:
mode:
authorChristophe Gisquet <christophe.gisquet@gmail.com>2014-07-28 17:17:28 +0000
committerMichael Niedermayer <michaelni@gmx.at>2014-08-22 16:26:30 +0200
commit2346f2b5db595a9f2d0e23ae4faa34b8977f9704 (patch)
tree1b6afcc26ea52cbcbfb15ce505bb8d2a8ddaa97e /libavcodec/x86/hevc_mc.asm
parentdad7f155678f5325a04b26791cd51fd49522d00c (diff)
downloadffmpeg-2346f2b5db595a9f2d0e23ae4faa34b8977f9704.tar.gz
x86: hevcdsp: use compilation-time-fixed constant
The stride for some buffers is known. Reviewed-by: Mickaƫl Raulet <mraulet@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/x86/hevc_mc.asm')
-rw-r--r--libavcodec/x86/hevc_mc.asm4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/x86/hevc_mc.asm b/libavcodec/x86/hevc_mc.asm
index 30c4a3985a..06fec12126 100644
--- a/libavcodec/x86/hevc_mc.asm
+++ b/libavcodec/x86/hevc_mc.asm
@@ -1211,7 +1211,7 @@ cglobal hevc_put_hevc_uni_w%1_%2, 6, 6, 7, dst, dststride, src, srcstride, heigh
%endif
PEL_%2STORE%1 dstq, m0, m1
add dstq, dststrideq ; dst += dststride
- lea srcq, [srcq+2*srcstrideq] ; src += srcstride
+ add srcq, 2*MAX_PB_SIZE ; src += srcstride
dec heightd ; cmp height
jnz .loop ; height loop
RET
@@ -1282,7 +1282,7 @@ cglobal hevc_put_hevc_bi_w%1_%2, 5, 7, 10, dst, dststride, src, srcstride, src2,
%endif
PEL_%2STORE%1 dstq, m0, m1
add dstq, dststrideq ; dst += dststride
- lea srcq, [srcq+2*srcstrideq] ; src += srcstride
+ add srcq, 2*MAX_PB_SIZE ; src += srcstride
add src2q, 2*MAX_PB_SIZE ; src2 += srcstride
dec r6d ; cmp height
jnz .loop ; height loop