From 2575ae6c989b133554f9b1267cf5dd694cf2aae6 Mon Sep 17 00:00:00 2001 From: Hamsalekha S Date: Wed, 5 Apr 2017 11:11:39 +0530 Subject: [PATCH] Decoder: Initialize MB info buffer to zero. Initialize the buffer used to store inter mb info (reference index, weights etc) to zero. Bug: 36035683 Change-Id: I23561a6a7fe852c0563a631d7ec6ab022cd78ccc --- decoder/ih264d_utils.c | 1 + 1 file changed, 1 insertion(+) diff --git a/decoder/ih264d_utils.c b/decoder/ih264d_utils.c index d356c0d..85c2fc1 100644 --- a/decoder/ih264d_utils.c +++ b/decoder/ih264d_utils.c @@ -1874,6 +1874,7 @@ WORD16 ih264d_allocate_dynamic_bufs(dec_struct_t * ps_dec) size = sizeof(parse_pmbarams_t) * (ps_dec->u1_recon_mb_grp); pv_buf = ps_dec->pf_aligned_alloc(pv_mem_ctxt, 128, size); RETURN_IF((NULL == pv_buf), IV_FAIL); + memset(pv_buf, 0, size); ps_dec->ps_parse_mb_data = pv_buf; size = sizeof(parse_part_params_t)