]> granicus.if.org Git - libvpx/commitdiff
vp8 bilinear: ensure temp array is aligned
authorJohann <johann.koenig@duck.com>
Mon, 29 Oct 2018 16:21:15 +0000 (09:21 -0700)
committerJohann <johann.koenig@duck.com>
Mon, 29 Oct 2018 16:21:21 +0000 (09:21 -0700)
Loads and stores to this array require 16 byte alignment.

BUG=webm:1570

Change-Id: I82c7d21c9539a108930fd030d79caaa0bcd1eeb3

vp8/common/x86/bilinear_filter_sse2.c

index 14e10eca457421b5e12f7006a440e204a1004acb..017d43df7160c90d5e42d2ce64a0504faaab7cba 100644 (file)
@@ -131,7 +131,7 @@ static INLINE void vertical_16x16(uint16_t *src, uint8_t *dst, const int stride,
 void vp8_bilinear_predict16x16_sse2(uint8_t *src_ptr, int src_pixels_per_line,
                                     int xoffset, int yoffset, uint8_t *dst_ptr,
                                     int dst_pitch) {
-  uint16_t FData[16 * 17];
+  DECLARE_ALIGNED(16, uint16_t, FData[16 * 17]);
 
   assert((xoffset | yoffset) != 0);