mirror of
https://github.com/ittiam-systems/libhevc.git
synced 2026-08-16 07:42:36 +07:00
Merge "Fix tile index buf alloc size" into nyc-dev
This commit is contained in:
commit
79ffdee092
1 changed files with 3 additions and 3 deletions
|
|
@ -1839,10 +1839,10 @@ WORD32 ihevcd_allocate_dynamic_bufs(codec_t *ps_codec)
|
|||
}
|
||||
|
||||
/* Max CTBs in a row */
|
||||
size = wd / MIN_CTB_SIZE + 2 /* Top row and bottom row extra. This ensures accessing left,top in first row
|
||||
and right in last row will not result in invalid access*/;
|
||||
size = wd / MIN_CTB_SIZE;
|
||||
/* Max CTBs in a column */
|
||||
size *= ht / MIN_CTB_SIZE;
|
||||
size *= (ht / MIN_CTB_SIZE + 2) /* Top row and bottom row extra. This ensures accessing left,top in first row
|
||||
and right in last row will not result in invalid access*/;
|
||||
|
||||
size *= sizeof(UWORD16);
|
||||
pv_buf = ps_codec->pf_aligned_alloc(pv_mem_ctxt, 128, size);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue