From c16dfcea7d52dcf576bccf6768c45a9a1e02393d Mon Sep 17 00:00:00 2001 From: Yandong Lin Date: Tue, 24 Sep 2024 14:32:15 +0800 Subject: [PATCH] fix[h264d]: fix no output for mvc stream By default, the frame of view 0 is decoded and output. Change-Id: I26287147548620f733712d4ab044df7c830dbd7f Signed-off-by: Yandong Lin --- mpp/codec/dec/h264/h264d_parse.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mpp/codec/dec/h264/h264d_parse.c b/mpp/codec/dec/h264/h264d_parse.c index 91b14a06..f920a30f 100644 --- a/mpp/codec/dec/h264/h264d_parse.c +++ b/mpp/codec/dec/h264/h264d_parse.c @@ -234,7 +234,8 @@ static MPP_RET parser_one_nalu(H264_SLICE_t *currSlice) return MPP_OK; } //!< check whether supprot mvc - if (currSlice->mvcExt.valid && !currSlice->p_Dec->cfg->base.enable_mvc) { + if (currSlice->mvcExt.view_id && currSlice->mvcExt.valid && + !currSlice->p_Dec->cfg->base.enable_mvc) { currSlice->p_Dec->nalu_ret = MvcDisAble; return MPP_OK; }