mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-05 17:16:50 +08:00
fix: fix redundant prefix NALU amended problem
1. For normal Smart-P mode, if TSVC is not enabled, temporal_id can be zero, and no need to add prefix NAL. 2. For RK3588 H.264 dual core encoders working concurrently, redundant prefix_nal should also be removed, if prefix NALU is empty. Change-Id: I89aca4f0cf418afb48e39a141107c5f4491a1ce1 Signed-off-by: Johnson Ding <johnson.ding@rock-chips.com>
This commit is contained in:
@@ -852,7 +852,7 @@ MPP_RET mpi_enc_gen_smart_gop_ref_cfg(MppEncRefCfg ref, RK_S32 gop_len, RK_S32 v
|
||||
/* st 1 layer 1 - non-ref */
|
||||
if (vi_len > 1) {
|
||||
st_ref[pos].is_non_ref = 0;
|
||||
st_ref[pos].temporal_id = 1;
|
||||
st_ref[pos].temporal_id = 0;
|
||||
st_ref[pos].ref_mode = REF_TO_PREV_REF_FRM;
|
||||
st_ref[pos].ref_arg = 0;
|
||||
st_ref[pos].repeat = vi_len - 2;
|
||||
|
Reference in New Issue
Block a user