mirror of
https://github.com/ittiam-systems/libhevc.git
synced 2026-08-15 23:32:35 +07:00
Alloc extra bytes for bits buf for parse optimzation
am: 2ae456c2a3
Change-Id: I433259a5e1a0f17be601b126c558abde80c8aa80
This commit is contained in:
commit
512ea0e115
1 changed files with 1 additions and 0 deletions
|
|
@ -1898,6 +1898,7 @@ WORD32 ihevcd_fill_num_mem_rec(void *pv_api_ip, void *pv_api_op)
|
|||
/* Request memory for buffer which holds bitstream after emulation prevention */
|
||||
ps_mem_rec = &ps_mem_rec_base[MEM_REC_BITSBUF];
|
||||
ps_mem_rec->u4_mem_size = MAX((max_wd_luma * max_ht_luma), MIN_BITSBUF_SIZE);
|
||||
ps_mem_rec->u4_mem_size += 16; //Alloc extra for parse optimization
|
||||
DEBUG("\nMemory record Id %d = %d \n", MEM_REC_BITSBUF,
|
||||
ps_mem_rec->u4_mem_size);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue