aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNaveen Kumar P <naveenkumar.p@ittiam.com>2018-01-23 18:03:49 +0530
committerJP Sugarbroad <jpsugar@google.com>2018-02-13 13:55:16 -0800
commit12fd9b50637e996930cfc6c50bd6b13e57e0b5d3 (patch)
tree780a1dab47440a326663523f71fae70677a69730
parent8dbc3c9ca579744e7b5f341f2f150c1ad931c643 (diff)
downloadlibhevc-12fd9b50637e996930cfc6c50bd6b13e57e0b5d3.tar.gz
Fix output buffer size check
Bug: 72165027 Test: ran poc before/after For output buffer size check, the parameter wd is set to larger of disp_wd and disp_strd. Change-Id: I1fc745753762b8a8e943165d0bf6525c500fb020 (cherry picked from commit ce8a8db32e9b2054c5dc119fbbec542bf8e848b6)
-rwxr-xr-xdecoder/ihevcd_utils.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/decoder/ihevcd_utils.c b/decoder/ihevcd_utils.c
index 14cdd2b..14c36ba 100755
--- a/decoder/ihevcd_utils.c
+++ b/decoder/ihevcd_utils.c
@@ -695,6 +695,9 @@ IHEVCD_ERROR_T ihevcd_check_out_buf_size(codec_t *ps_codec)
return (IHEVCD_ERROR_T)IHEVCD_SUCCESS;
}
+ if(ps_codec->i4_disp_strd > (WORD32)wd)
+ wd = ps_codec->i4_disp_strd;
+
if(ps_codec->e_chroma_fmt == IV_YUV_420P)
u4_min_num_out_bufs = MIN_OUT_BUFS_420;
else if(ps_codec->e_chroma_fmt == IV_YUV_422ILE)