[FFmpeg-devel] [PATCH 4/4] x86: hevcdsp: use compilation-time-fixed constant
Christophe Gisquet
christophe.gisquet at gmail.com
Mon Jul 28 19:17:28 CEST 2014
The stride for some buffers is known.
---
libavcodec/x86/hevc_mc.asm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavcodec/x86/hevc_mc.asm b/libavcodec/x86/hevc_mc.asm
index ea4447b..2c34927 100644
--- a/libavcodec/x86/hevc_mc.asm
+++ b/libavcodec/x86/hevc_mc.asm
@@ -1201,7 +1201,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
@@ -1254,7 +1254,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
--
1.9.2.msysgit.0
More information about the ffmpeg-devel
mailing list