Commit 637586ec authored by Yaowu Xu's avatar Yaowu Xu

Add initializations for stack arrays

BUG=aomedia:1363

Change-Id: I8ca90f1b0d7dfe92078c611f66dcb19e70a6c1e0
parent 592d73ec
......@@ -668,7 +668,7 @@ static int upsampled_pref_error(const MACROBLOCKD *xd,
unsigned int *sse) {
unsigned int besterr;
if (xd->cur_buf->flags & YV12_FLAG_HIGHBITDEPTH) {
DECLARE_ALIGNED(16, uint16_t, pred16[MAX_SB_SQUARE]);
DECLARE_ALIGNED(16, uint16_t, pred16[MAX_SB_SQUARE]) = { 0 };
if (second_pred != NULL) {
if (mask) {
aom_highbd_comp_mask_upsampled_pred(
......@@ -693,7 +693,7 @@ static int upsampled_pref_error(const MACROBLOCKD *xd,
besterr = vfp->vf(CONVERT_TO_BYTEPTR(pred16), w, src, src_stride, sse);
} else {
DECLARE_ALIGNED(16, uint8_t, pred[MAX_SB_SQUARE]);
DECLARE_ALIGNED(16, uint8_t, pred[MAX_SB_SQUARE]) = { 0 };
if (second_pred != NULL) {
if (mask) {
aom_comp_mask_upsampled_pred(pred, second_pred, w, h, subpel_x_q3,
......
......@@ -8505,8 +8505,8 @@ static int64_t handle_inter_mode(
int best_tmp_rate_mv = rate_mv;
int tmp_skip_txfm_sb;
int64_t tmp_skip_sse_sb;
DECLARE_ALIGNED(16, uint8_t, pred0[2 * MAX_SB_SQUARE]);
DECLARE_ALIGNED(16, uint8_t, pred1[2 * MAX_SB_SQUARE]);
DECLARE_ALIGNED(16, uint8_t, pred0[2 * MAX_SB_SQUARE]) = { 0 };
DECLARE_ALIGNED(16, uint8_t, pred1[2 * MAX_SB_SQUARE]) = { 0 };
uint8_t *preds0[1] = { pred0 };
uint8_t *preds1[1] = { pred1 };
int strides[1] = { bw };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment