Merge sc-qpr1-dev-plus-aosp-without-vendor@7810918

Bug: 205056467
Merged-In: I27cece8320b92d25e5e10dddfd541f7aeb56527f
Change-Id: I404ee8c2afe5ca547526c29b0aa6e079db15bc1d
This commit is contained in:
Xin Li 2021-11-10 08:05:47 +00:00
commit 18ec440913

View file

@ -4132,6 +4132,13 @@ static WORD32 ih264e_init_mem_rec(iv_obj_t *ps_codec_obj,
/* mem records */
ps_mem_rec_base = ps_ip->s_ive_ip.ps_mem_rec;
/* memset all allocated memory, except the first one. First buffer (i.e. i == MEM_REC_IV_OBJ)
is initialized by application before calling this init function */
for (i = MEM_REC_CODEC; i < MEM_REC_CNT; i++)
{
ps_mem_rec = &ps_mem_rec_base[i];
memset(ps_mem_rec->pv_base, 0, ps_mem_rec->u4_mem_size);
}
/* Init mem records */
ps_mem_rec = &ps_mem_rec_base[MEM_REC_CODEC];