[FFmpeg-cvslog] swscale: handle unaligned buffers in yuv2plane1
Ronald S. Bultje
git at videolan.org
Mon Nov 14 00:43:06 CET 2011
ffmpeg | branch: master | Ronald S. Bultje <rsbultje at gmail.com> | Sun Nov 13 05:40:41 2011 +0100| [8283f90a52ee5feb5292df3707d4846c3c5d8049] | committer: Luca Barbato
swscale: handle unaligned buffers in yuv2plane1
The issue had been introduced in
c435653627529e22d74214c2266f571255e404d6
Signed-off-by: Luca Barbato <lu_zero at gentoo.org>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8283f90a52ee5feb5292df3707d4846c3c5d8049
---
libswscale/x86/scale.asm | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/libswscale/x86/scale.asm b/libswscale/x86/scale.asm
index 64699ea..3bdf71b 100644
--- a/libswscale/x86/scale.asm
+++ b/libswscale/x86/scale.asm
@@ -718,6 +718,8 @@ yuv2planeX_fn avx, 10, 7, 5
%macro yuv2plane1_fn 3
cglobal yuv2plane1_%1, %3, %3, %2
+ add r2, mmsize - 1
+ and r2, ~(mmsize - 1)
%if %1 == 8
add r1, r2
%else ; %1 != 8
More information about the ffmpeg-cvslog
mailing list