Fix Segmentation fault in unit test for JntCompAvg
Segmentation fault in unit test for AV1JNTCOMPAVGUPSAMPLEDTest
when built with -DSANITIZE=integer has been fixed.
BUG=aomedia:1740
Change-Id: Ic2e557be012ce3dedd9190a6b677d620dbfcfb1d
diff --git a/test/comp_avg_pred_test.h b/test/comp_avg_pred_test.h
index fcd30e8..826ff8a 100644
--- a/test/comp_avg_pred_test.h
+++ b/test/comp_avg_pred_test.h
@@ -202,8 +202,8 @@
uint8_t pred8[kMaxSize * kMaxSize];
uint8_t ref8[kMaxSize * kMaxSize];
- uint8_t output[kMaxSize * kMaxSize];
- uint8_t output2[kMaxSize * kMaxSize];
+ DECLARE_ALIGNED(16, uint8_t, output[MAX_SB_SQUARE]);
+ DECLARE_ALIGNED(16, uint8_t, output2[MAX_SB_SQUARE]);
for (int i = 0; i < h; ++i)
for (int j = 0; j < w; ++j) {
@@ -254,8 +254,8 @@
uint8_t pred8[kMaxSize * kMaxSize];
uint8_t ref8[kMaxSize * kMaxSize];
- uint8_t output[kMaxSize * kMaxSize];
- uint8_t output2[kMaxSize * kMaxSize];
+ DECLARE_ALIGNED(16, uint8_t, output[MAX_SB_SQUARE]);
+ DECLARE_ALIGNED(16, uint8_t, output2[MAX_SB_SQUARE]);
for (int i = 0; i < h; ++i)
for (int j = 0; j < w; ++j) {