fix[h265d_ref]: fix set fbc output fmt not effect issue

Change-Id: I9026253b0d1454f0664f392bb19858e4aefa2396
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
This commit is contained in:
Yandong Lin
2024-03-04 11:31:04 +08:00
committed by Herman Chen
parent 514b0c0ccf
commit d3ae038731

View File

@@ -83,6 +83,8 @@ static HEVCFrame *alloc_frame(HEVCContext *s)
{
RK_U32 i;
MPP_RET ret = MPP_OK;
MppFrameFormat fmt = s->h265dctx->cfg->base.out_fmt & (~MPP_FRAME_FMT_MASK);
for (i = 0; i < MPP_ARRAY_ELEMS(s->DPB); i++) {
HEVCFrame *frame = &s->DPB[i];
if (frame->slot_index != 0xff) {
@@ -98,6 +100,7 @@ static HEVCFrame *alloc_frame(HEVCContext *s)
if (s->is_hdr) {
s->h265dctx->pix_fmt |= MPP_FRAME_HDR;
}
s->h265dctx->pix_fmt |= fmt;
mpp_frame_set_fmt(frame->frame, s->h265dctx->pix_fmt);
if (MPP_FRAME_FMT_IS_FBC(s->h265dctx->pix_fmt)) {