[FFmpeg-devel] [PATCH] pngdsp x86: use scalar loop for unaligned dest buffers.
Benoit Fouet
benoit.fouet at free.fr
Tue Dec 2 13:51:33 CET 2014
Signed-off-by: Christophe Gisquet <christophe.gisquet at gmail.com>
Signed-off-by: Benoit Fouet <benoit.fouet at gmail.com>
---
libavcodec/x86/pngdsp.asm | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/libavcodec/x86/pngdsp.asm b/libavcodec/x86/pngdsp.asm
index 8e23ccf..76b93a9 100644
--- a/libavcodec/x86/pngdsp.asm
+++ b/libavcodec/x86/pngdsp.asm
@@ -36,9 +36,13 @@ cglobal add_bytes_l2, 4, 6, %1, dst, src1, src2, wa, w, i
movsxd waq, wad
%endif
xor iq, iq
+ mov wq, waq
+
+ ; test unaligned dst buffer
+ test dstq, (mmsize-1)
+ jnz .end_s
; vector loop
- mov wq, waq
and waq, ~(mmsize*2-1)
jmp .end_v
.loop_v:
--
2.2.0
More information about the ffmpeg-devel
mailing list