summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHamsalekha S <hamsalekha.s@ittiam.com>2017-04-05 11:11:39 +0530
committerandroid-build-team Robot <android-build-team-robot@google.com>2017-05-24 17:19:28 +0000
commit776ddbcc9b564bdc9264d064813264572a98b47a (patch)
treefb40fd56a5e15d33f469e20c77affb17ad9b0536
parent4081cc41c44ff28c43eedc72dd6ccb31e7220713 (diff)
downloadandroid_external_libavc-776ddbcc9b564bdc9264d064813264572a98b47a.tar.gz
android_external_libavc-776ddbcc9b564bdc9264d064813264572a98b47a.tar.bz2
android_external_libavc-776ddbcc9b564bdc9264d064813264572a98b47a.zip
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 (cherry picked from commit 2575ae6c989b133554f9b1267cf5dd694cf2aae6)
-rw-r--r--decoder/ih264d_utils.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/decoder/ih264d_utils.c b/decoder/ih264d_utils.c
index 8d02d0e..c64ee8a 100644
--- a/decoder/ih264d_utils.c
+++ b/decoder/ih264d_utils.c
@@ -1873,6 +1873,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)