Merge "Fix tile index buf alloc size" into nyc-dev

am: 79ffdee092

Change-Id: I4a488b9548124ccdc0844dc8338cd609359ae1be
This commit is contained in:
Naveen Kumar P 2017-09-13 20:06:50 +00:00 • committed by android-build-merger
commit c67922bab6

View file

@ -1867,10 +1867,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);