[mpp_enc_v2]: Check resend_hdr must request IDR

Change-Id: Ibaaa408eae165ba99c0a4b61a1f207e393c7f645
Signed-off-by: sayon.chen <sayon.chen@rock-chips.com>
This commit is contained in:
sayon.chen
2020-06-05 10:12:42 +08:00
committed by Herman Chen
parent 48761dbe91
commit c468393e8e

View File

@@ -473,8 +473,10 @@ static void mpp_enc_proc_cfg(MppEncImpl *enc)
} break;
}
if (check_resend_hdr(enc->cmd, enc->param, &enc->cfg))
if (check_resend_hdr(enc->cmd, enc->param, &enc->cfg)) {
enc->frm_cfg.force_flag |= ENC_FORCE_IDR;
enc->hdr_status.val = 0;
}
if (check_rc_cfg_update(enc->cmd, &enc->cfg))
enc->rc_status.rc_api_user_cfg = 1;
}