Index: source/libvpx/vp9/encoder/vp9_mcomp.c |
diff --git a/source/libvpx/vp9/encoder/vp9_mcomp.c b/source/libvpx/vp9/encoder/vp9_mcomp.c |
index 9602eb56869aff614696c5435444fb5262965a4a..80c509a1b4908cc3f759280e40c9ed9ad273dbaa 100644 |
--- a/source/libvpx/vp9/encoder/vp9_mcomp.c |
+++ b/source/libvpx/vp9/encoder/vp9_mcomp.c |
@@ -301,13 +301,13 @@ static INLINE unsigned int setup_center_error(const MACROBLOCKD *xd, |
#if CONFIG_VP9_HIGHBITDEPTH |
if (second_pred != NULL) { |
if (xd->cur_buf->flags & YV12_FLAG_HIGHBITDEPTH) { |
- DECLARE_ALIGNED_ARRAY(16, uint16_t, comp_pred16, 64 * 64); |
+ DECLARE_ALIGNED(16, uint16_t, comp_pred16[64 * 64]); |
vp9_highbd_comp_avg_pred(comp_pred16, second_pred, w, h, y + offset, |
y_stride); |
besterr = vfp->vf(CONVERT_TO_BYTEPTR(comp_pred16), w, src, src_stride, |
sse1); |
} else { |
- DECLARE_ALIGNED_ARRAY(16, uint8_t, comp_pred, 64 * 64); |
+ DECLARE_ALIGNED(16, uint8_t, comp_pred[64 * 64]); |
vp9_comp_avg_pred(comp_pred, second_pred, w, h, y + offset, y_stride); |
besterr = vfp->vf(comp_pred, w, src, src_stride, sse1); |
} |
@@ -319,7 +319,7 @@ static INLINE unsigned int setup_center_error(const MACROBLOCKD *xd, |
#else |
(void) xd; |
if (second_pred != NULL) { |
- DECLARE_ALIGNED_ARRAY(16, uint8_t, comp_pred, 64 * 64); |
+ DECLARE_ALIGNED(16, uint8_t, comp_pred[64 * 64]); |
vp9_comp_avg_pred(comp_pred, second_pred, w, h, y + offset, y_stride); |
besterr = vfp->vf(comp_pred, w, src, src_stride, sse1); |
} else { |
@@ -1802,7 +1802,7 @@ unsigned int vp9_int_pro_motion_estimation(const VP9_COMP *cpi, MACROBLOCK *x, |
const int src_stride = x->plane[0].src.stride; |
const int ref_stride = xd->plane[0].pre[0].stride; |
uint8_t const *ref_buf, *src_buf; |
- MV *tmp_mv = &xd->mi[0].src_mi->mbmi.mv[0].as_mv; |
+ MV *tmp_mv = &xd->mi[0]->mbmi.mv[0].as_mv; |
unsigned int best_sad, tmp_sad, this_sad[4]; |
MV this_mv; |
const int norm_factor = 3 + (bw >> 5); |
@@ -2017,7 +2017,7 @@ int vp9_full_search_sadx3(const MACROBLOCK *x, const MV *ref_mv, |
if (fn_ptr->sdx3f != NULL) { |
while ((c + 2) < col_max) { |
int i; |
- unsigned int sads[3]; |
+ DECLARE_ALIGNED(16, uint32_t, sads[3]); |
fn_ptr->sdx3f(what->buf, what->stride, check_here, in_what->stride, |
sads); |
@@ -2082,7 +2082,7 @@ int vp9_full_search_sadx8(const MACROBLOCK *x, const MV *ref_mv, |
if (fn_ptr->sdx8f != NULL) { |
while ((c + 7) < col_max) { |
int i; |
- unsigned int sads[8]; |
+ DECLARE_ALIGNED(16, uint32_t, sads[8]); |
fn_ptr->sdx8f(what->buf, what->stride, check_here, in_what->stride, |
sads); |
@@ -2106,7 +2106,7 @@ int vp9_full_search_sadx8(const MACROBLOCK *x, const MV *ref_mv, |
if (fn_ptr->sdx3f != NULL) { |
while ((c + 2) < col_max) { |
int i; |
- unsigned int sads[3]; |
+ DECLARE_ALIGNED(16, uint32_t, sads[3]); |
fn_ptr->sdx3f(what->buf, what->stride, check_here, in_what->stride, |
sads); |