diff options
author | Hamsalekha S <hamsalekha.s@ittiam.com> | 2017-04-05 11:11:39 +0530 |
---|---|---|
committer | Andreas Blaesius <skate4life@gmx.de> | 2017-09-17 20:10:47 +0000 |
commit | 3193b6f8c9d33e26f8dd9c7bf85aa0573fe242b9 (patch) | |
tree | 01a7d9530d0cc14038c6c9f168588e50039409f9 | |
parent | 839c6327f8467e2e238238623ab3831fc4b3f280 (diff) | |
download | android_external_libavc-cm-13.0_20171109.tar.gz android_external_libavc-cm-13.0_20171109.tar.bz2 android_external_libavc-cm-13.0_20171109.zip |
Decoder: Initialize MB info buffer to zero.cm-13.0_20171109
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)
(cherry picked from commit 9041bb17f70a94019e05459164b4756bde01edee)
-rw-r--r-- | decoder/ih264d_utils.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/decoder/ih264d_utils.c b/decoder/ih264d_utils.c index 7ddef7a..7d7475d 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) |