Update the constraint on 1-pass look ahead buffer size
The 1-pass encoding uses the tpl process for its underlying rate
control. Update the encoding constraints to make it consistent
with the latest tpl design.
BUG=b/304299853
Change-Id: Ieb2851b6fb1966318c2f77398afeda19e33e847f
diff --git a/av1/av1_cx_iface.c b/av1/av1_cx_iface.c
index ea99331..a3bd682 100644
--- a/av1/av1_cx_iface.c
+++ b/av1/av1_cx_iface.c
@@ -670,11 +670,7 @@
RANGE_CHECK(cfg, kf_mode, AOM_KF_DISABLED, AOM_KF_AUTO);
RANGE_CHECK_HI(cfg, rc_dropframe_thresh, 100);
RANGE_CHECK(cfg, g_pass, AOM_RC_ONE_PASS, AOM_RC_THIRD_PASS);
- if (cfg->g_pass == AOM_RC_ONE_PASS) {
- RANGE_CHECK_HI(cfg, g_lag_in_frames, MAX_TOTAL_BUFFERS);
- } else {
- RANGE_CHECK_HI(cfg, g_lag_in_frames, MAX_LAG_BUFFERS);
- }
+ RANGE_CHECK_HI(cfg, g_lag_in_frames, MAX_LAG_BUFFERS);
if (cfg->g_usage == AOM_USAGE_ALL_INTRA) {
RANGE_CHECK_HI(cfg, g_lag_in_frames, 0);
RANGE_CHECK_HI(cfg, kf_max_dist, 0);