shithub: libvpx

Download patch

ref: 4cba6ce198a2fc49631b465e10f4997048eef824
parent: c0f71b4e9c3be54b964ac39022c084b49729de8c
author: Johann <[email protected]>
date: Mon Oct 29 05:21:15 EDT 2018

vp8 bilinear: ensure temp array is aligned

Loads and stores to this array require 16 byte alignment.

BUG=webm:1570

Change-Id: I82c7d21c9539a108930fd030d79caaa0bcd1eeb3

--- a/vp8/common/x86/bilinear_filter_sse2.c
+++ b/vp8/common/x86/bilinear_filter_sse2.c
@@ -131,7 +131,7 @@
 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);