From 02353530e097c9e970e7ec46c4eb5ecb04de833b Mon Sep 17 00:00:00 2001 From: Harish Mahendrakar Date: Thu, 24 Sep 2026 07:19:12 -0700 Subject: [PATCH] correct input bufsize in get_bufinfo call for 422/444 --- decoder/ihevcd_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/decoder/ihevcd_api.c b/decoder/ihevcd_api.c index c300953..7ac25f8 100644 --- a/decoder/ihevcd_api.c +++ b/decoder/ihevcd_api.c @@ -2938,7 +2938,7 @@ WORD32 ihevcd_get_buf_info(iv_obj_t *ps_codec_obj, if(ps_sps->i1_chroma_format_idc == CHROMA_FMT_IDC_YUV444) ps_ctl_op->u4_min_in_buf_size[i] = MAX((wd * ht * 3), MIN_BITSBUF_SIZE); - if(ps_sps->i1_chroma_format_idc == CHROMA_FMT_IDC_YUV422) + else if(ps_sps->i1_chroma_format_idc == CHROMA_FMT_IDC_YUV422) ps_ctl_op->u4_min_in_buf_size[i] = MAX((wd * ht * 2), MIN_BITSBUF_SIZE); else ps_ctl_op->u4_min_in_buf_size[i] = MAX((wd * ht), MIN_BITSBUF_SIZE);