[mpp_enc_ref]: Fix typos

The check on short-term config should use short-term config count rather
than long-term config count.

Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: I0006fe9a30035f636411702290cd9dff4032296d
This commit is contained in:
Herman Chen
2020-06-20 09:04:58 +08:00
parent fefa75939d
commit 48e07d877f

View File

@@ -270,7 +270,7 @@ MPP_RET mpp_enc_ref_cfg_check(MppEncRefCfg ref)
} }
/* constrain on head and tail frame */ /* constrain on head and tail frame */
if (pos == 0 || (pos == lt_cfg_cnt - 1)) { if (pos == 0 || (pos == st_cfg_cnt - 1)) {
if (cfg->is_non_ref) { if (cfg->is_non_ref) {
mpp_err_f("ref cfg %p st cfg %d with invalid non-ref frame on head/tail frame\n", mpp_err_f("ref cfg %p st cfg %d with invalid non-ref frame on head/tail frame\n",
ref, pos); ref, pos);