[libav-bugs] [Bug 513] get_pixels_altivec causes FATE failures under valgrind due to over-reading

bugzilla at libav.org bugzilla at libav.org
Tue Aug 13 06:24:17 CEST 2013


http://bugzilla.libav.org/show_bug.cgi?id=513

--- Comment #4 from lu_zero at gentoo.org <lu_zero at gentoo.org> 2013-08-13 06:24:16 CEST ---
Please try this and tell me if it works.

diff --git a/libavcodec/ppc/dsputil_altivec.c
b/libavcodec/ppc/dsputil_altivec.c
index f90ec74..68340bc 100644
--- a/libavcodec/ppc/dsputil_altivec.c
+++ b/libavcodec/ppc/dsputil_altivec.c
@@ -490,8 +490,8 @@ static void get_pixels_altivec(int16_t *restrict block,
const uint8_t *pixels, i
         // We're reading 16 pixels, and actually only want 8,
         // but we simply ignore the extras.
         vector unsigned char pixl = vec_ld( 0, pixels);
-        vector unsigned char pixr = vec_ld(15, pixels);
-        bytes = vec_perm(pixl, pixr, perm);
+        // vector unsigned char pixr = vec_ld(15, pixels);
+        bytes = vec_perm(pixl, pixl, perm);

         // convert the bytes into shorts
         shorts = (vector signed short)vec_mergeh(zero, bytes);

-- 
Configure bugmail: http://bugzilla.libav.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the libav-bugs mailing list