From 44a6f18ac60579ceb18dae331f7e60817b171462 Mon Sep 17 00:00:00 2001 From: Herman Chen Date: Thu, 24 Nov 2022 09:10:04 +0800 Subject: [PATCH] [h265d]: Add hw_info pointer check Signed-off-by: Herman Chen Change-Id: Ib11d6a4e103f06df2d4211a9224088c07c5f459b --- mpp/codec/dec/h265/h265d_ps.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mpp/codec/dec/h265/h265d_ps.c b/mpp/codec/dec/h265/h265d_ps.c index 3a812dbc..d480c7aa 100644 --- a/mpp/codec/dec/h265/h265d_ps.c +++ b/mpp/codec/dec/h265/h265d_ps.c @@ -1988,11 +1988,13 @@ int mpp_hevc_decode_nal_pps(HEVCContext *s) READ_ONEBIT(gb, &pps->entropy_coding_sync_enabled_flag); // check support solution - { + if (s->h265dctx->hw_info) { const MppDecHwCap *hw_info = s->h265dctx->hw_info; - if (hw_info && hw_info->cap_lmt_linebuf) { + + if (hw_info->cap_lmt_linebuf) { RK_S32 max_supt_width = PIXW_1080P; RK_S32 max_supt_height = pps->tiles_enabled_flag ? PIXH_1080P : PIXW_1080P; + if (hw_info && hw_info->cap_8k) { max_supt_width = PIXW_8Kx4K; max_supt_height = pps->tiles_enabled_flag ? PIXH_8Kx4K : PIXW_8Kx4K;