[FFmpeg-devel] [PATCH] x86/cavsdsp: fix buffer alignment in cavs_idct8_add_mmx()

James Almer jamrial at gmail.com
Thu Sep 25 20:06:30 CEST 2014

It may be used by ff_add_pixels_clamped_sse2().
Should fix fate-cavs failures on some systems.

Signed-off-by: James Almer <jamrial at gmail.com>
 libavcodec/x86/cavsdsp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/x86/cavsdsp.c b/libavcodec/x86/cavsdsp.c
index 681d16a..190f6ee 100644
--- a/libavcodec/x86/cavsdsp.c
+++ b/libavcodec/x86/cavsdsp.c
@@ -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);

More information about the ffmpeg-devel mailing list