summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 5e27885..fef3f74 100755
--- a/decoder/ihevcd_utils.c
+++ b/decoder/ihevcd_utils.c
@@ -736,6 +736,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)