[h264d]: fix fmt assignment for yuv400 souce err

Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
Change-Id: I24e4cd2a7edbb4161a3f7b323482343e2275df67
This commit is contained in:
Yandong Lin
2022-05-19 10:53:59 +08:00
parent 1ad3e05f13
commit 0794bf083b

View File

@@ -420,7 +420,9 @@ static MPP_RET dpb_mark_malloc(H264dVideoCtx_t *p_Vid, H264_StorePic_t *dec_pic)
MppFrameFormat out_fmt = p_Dec->cfg->base.out_fmt;
MppFrameImpl *impl = (MppFrameImpl *)p_Dec->curframe;
if ((H264_CHROMA_420 == p_Vid->yuv_format) && (8 == p_Vid->bit_depth_luma)) {
if ((H264_CHROMA_400 == p_Vid->yuv_format) && (8 == p_Vid->bit_depth_luma)) {
fmt = MPP_FMT_YUV400;
} else if ((H264_CHROMA_420 == p_Vid->yuv_format) && (8 == p_Vid->bit_depth_luma)) {
fmt = MPP_FMT_YUV420SP;
} else if ((H264_CHROMA_420 == p_Vid->yuv_format) && (10 == p_Vid->bit_depth_luma)) {
fmt = MPP_FMT_YUV420SP_10BIT;