ref: b1f789cf18ffcc976704184f2544d218c88f8ded
parent: 2b838d9081b597825f37f1816514cc9820f47097
parent: 7dfb8e18f68ac7c6f853f82c269b02859fd8c3aa
author: Jingning Han <jingning@google.com>
date: Thu Oct 18 12:25:37 EDT 2018
Merge "Replace MAX_LAG_BUFFERS with MAX_ARF_GOP_SIZE for gop size"
--- a/vp9/encoder/vp9_encodeframe.c
+++ b/vp9/encoder/vp9_encodeframe.c
@@ -3578,7 +3578,7 @@
if (cpi->common.show_frame) return orig_rdmult;
- if (cpi->twopass.gf_group.index >= MAX_LAG_BUFFERS) return orig_rdmult;
+ if (cpi->twopass.gf_group.index >= MAX_ARF_GOP_SIZE) return orig_rdmult;
for (row = mi_row; row < mi_row + mi_high; ++row) {
for (col = mi_col; col < mi_col + mi_wide; ++col) {
@@ -5708,7 +5708,7 @@
if (sf->partition_search_type == SOURCE_VAR_BASED_PARTITION)
source_var_based_partition_search_method(cpi);
- } else if (gf_group_index && gf_group_index < MAX_LAG_BUFFERS &&
+ } else if (gf_group_index && gf_group_index < MAX_ARF_GOP_SIZE &&
cpi->sf.enable_tpl_model) {
TplDepFrame *tpl_frame = &cpi->tpl_stats[cpi->twopass.gf_group.index];
TplDepStats *tpl_stats = tpl_frame->tpl_stats_ptr;