Merge "Decoder: Fixed allocation size of pred info buffer" into mnc-dr-dev
am: 94660850f0
Change-Id: If19966d90395e3de9666a690984c3066e23d59c9
This commit is contained in:
commit
a09bbc27eb
1 changed files with 1 additions and 4 deletions
|
|
@ -1999,10 +1999,7 @@ WORD16 ih264d_allocate_dynamic_bufs(dec_struct_t * ps_dec)
|
||||||
|
|
||||||
/* Allocate memory for packed pred info */
|
/* Allocate memory for packed pred info */
|
||||||
num_entries = u4_total_mbs;
|
num_entries = u4_total_mbs;
|
||||||
if(1 == ps_dec->ps_cur_sps->u1_num_ref_frames)
|
num_entries *= 16 * 2;
|
||||||
num_entries *= 16;
|
|
||||||
else
|
|
||||||
num_entries *= 16 * 2;
|
|
||||||
|
|
||||||
size = sizeof(pred_info_pkd_t) * num_entries;
|
size = sizeof(pred_info_pkd_t) * num_entries;
|
||||||
pv_buf = ps_dec->pf_aligned_alloc(pv_mem_ctxt, 128, size);
|
pv_buf = ps_dec->pf_aligned_alloc(pv_mem_ctxt, 128, size);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue