From 48e07d877fa9aa821430f7911c3f3ca7a6257f2c Mon Sep 17 00:00:00 2001 From: Herman Chen Date: Sat, 20 Jun 2020 09:04:58 +0800 Subject: [PATCH] [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 Change-Id: I0006fe9a30035f636411702290cd9dff4032296d --- mpp/base/mpp_enc_ref.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mpp/base/mpp_enc_ref.cpp b/mpp/base/mpp_enc_ref.cpp index 867ae5e6..bac861bf 100644 --- a/mpp/base/mpp_enc_ref.cpp +++ b/mpp/base/mpp_enc_ref.cpp @@ -270,7 +270,7 @@ MPP_RET mpp_enc_ref_cfg_check(MppEncRefCfg ref) } /* 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) { mpp_err_f("ref cfg %p st cfg %d with invalid non-ref frame on head/tail frame\n", ref, pos);