ref: af2ba81b94e362531af3cb118e406bc7d9115c98
parent: 4060456c038049dfac5c1dba27fd5efa8e36f217
parent: a1d8aec6b4463994bffc040395fddb0812ec483e
author: Johann Koenig <johannkoenig@google.com>
date: Mon Sep 24 18:30:46 EDT 2018
Merge "segfault: fix missing alignment declaration"
--- a/vpx_dsp/psnrhvs.c
+++ b/vpx_dsp/psnrhvs.c
@@ -126,8 +126,10 @@
const uint8_t *_dst8 = dst;
const uint16_t *_src16 = CONVERT_TO_SHORTPTR(src);
const uint16_t *_dst16 = CONVERT_TO_SHORTPTR(dst);
- int16_t dct_s[8 * 8], dct_d[8 * 8];
- tran_low_t dct_s_coef[8 * 8], dct_d_coef[8 * 8];
+ DECLARE_ALIGNED(16, int16_t, dct_s[8 * 8]);
+ DECLARE_ALIGNED(16, int16_t, dct_d[8 * 8]);
+ DECLARE_ALIGNED(16, tran_low_t, dct_s_coef[8 * 8]);
+ DECLARE_ALIGNED(16, tran_low_t, dct_d_coef[8 * 8]);
double mask[8][8];
int pixels;
int x;