Consolidate the use of GF_GROUP variables Replace frame_disp_idx with arf_src_offset. BUG=aomedia:2728 Change-Id: I1e763b89a0e9602ec13e2b603d3ffec09284fffe
diff --git a/av1/encoder/temporal_filter.c b/av1/encoder/temporal_filter.c index cb174c6..bb52175 100644 --- a/av1/encoder/temporal_filter.c +++ b/av1/encoder/temporal_filter.c
@@ -883,13 +883,11 @@ // Temporal filtering should not go beyond key frames const int key_to_curframe = AOMMAX(cpi->rc.frames_since_key + - cpi->gf_group.frame_disp_idx[cpi->gf_group.index] - - cpi->num_gf_group_show_frames, + cpi->gf_group.arf_src_offset[cpi->gf_group.index], 0); const int curframe_to_key = AOMMAX(cpi->rc.frames_to_key - - cpi->gf_group.frame_disp_idx[cpi->gf_group.index] + - cpi->num_gf_group_show_frames - 1, + cpi->gf_group.arf_src_offset[cpi->gf_group.index] - 1, 0); // Number of buffered frames before the to-filter frame.