mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-06 17:46:50 +08:00
[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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user