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
This commit is contained in:
Naveen Kumar P 2018-01-23 18:03:49 +05:30 committed by Ray Essick
parent 6a587c6be7
commit ce8a8db32e

View file

@ -779,6 +779,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)