Disable stackless reference system with low delay
This is until a performance drop is fixed.
STATS_CHANGED
Change-Id: I9e1737e4adf7fc3ca1313ef5c4a5a18b29a5b51a
diff --git a/av1/encoder/encode_strategy.c b/av1/encoder/encode_strategy.c
index 84922cc..a70e17b 100644
--- a/av1/encoder/encode_strategy.c
+++ b/av1/encoder/encode_strategy.c
@@ -1436,8 +1436,12 @@
void av1_get_ref_frames(AV1_COMP *const cpi, RefBufferStack *ref_buffer_stack,
int cur_frame_disp,
RefFrameMapPair ref_frame_map_pairs[REF_FRAMES]) {
- get_ref_frames_subgop(cpi, cur_frame_disp, ref_frame_map_pairs);
- return;
+ // TODO(sarahparker) Enable this for low delay once the performance drop is
+ // addressed
+ if (cpi->oxcf.gf_cfg.lag_in_frames > 0) {
+ get_ref_frames_subgop(cpi, cur_frame_disp, ref_frame_map_pairs);
+ return;
+ }
// TODO(sarahparker) Delete this all with stack deletion
AV1_COMMON *cm = &cpi->common;