x86/cavsdsp: fix buffer alignment in cavs_idct8_add_mmx()
authorJames Almer <jamrial@gmail.com>
Thu, 25 Sep 2014 18:04:50 +0000 (15:04 -0300)
committerJames Almer <jamrial@gmail.com>
Thu, 25 Sep 2014 19:00:16 +0000 (16:00 -0300)
It may be used by ff_add_pixels_clamped_sse2().
Should fix fate-cavs failures on some systems.

Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: James Almer <jamrial@gmail.com>
libavcodec/x86/cavsdsp.c

index 681d16a..190f6ee 100644 (file)
@@ -139,7 +139,7 @@ static inline void cavs_idct8_1d(int16_t *block, uint64_t bias)
 static void cavs_idct8_add_mmx(uint8_t *dst, int16_t *block, int stride)
 {
     int i;
-    DECLARE_ALIGNED(8, int16_t, b2)[64];
+    DECLARE_ALIGNED(16, int16_t, b2)[64];
 
     for(i=0; i<2; i++){
         DECLARE_ALIGNED(8, uint64_t, tmp);