fix[h264e_dpb]: fix walk_len when refs_dryrun

Platform:All
Spec:encoder

Error case:
h264e_dpb: find_cpb_frame can not find match frm 0.

Solution:
Since info->st_gop = st_cfg_cnt - 1 cannot accurately represent
the number of st_cfg, st_cfg_cnt is used to replace info->st_gop.

Change-Id: I3a2f494de5dcec0182d0431fb2c1b653cbe3bf84
Signed-off-by: Yanjun Liao <yanjun.liao@rock-chips.com>
This commit is contained in:
Yanjun Liao 2025-04-25 14:26:24 +08:00
parent 81c4696937
commit 54d72a64c5

View file

@ -594,7 +594,7 @@ MPP_RET mpp_enc_refs_dryrun(MppEncRefs refs)
RK_S32 cpb_st_used_size = 0;
RK_S32 seq_idx = 0;
RK_S32 st_idx;
RK_S32 walk_len = MPP_MAX(info->lt_gop, info->st_gop);
RK_S32 walk_len = MPP_MAX(lt_cfg_cnt, st_cfg_cnt);
if (cfg->ready)
goto DONE;