When the next frame is null and the current frame is an overlay
frame, which is equivalent to there is an active alt ref frame,
we call this an end of sequence.
Change-Id: I49c2cf7a001df98aff8b62ba034317e408274bd4
EXPECT_EQ(encode_frame_info->show_index, 3);
EXPECT_EQ(encode_frame_info->gop_index, 0);
EXPECT_EQ(encode_frame_info->frame_type, vp9::kFrameTypeGolden);
- EXPECT_EQ(toy_rate_ctrl->gop_global_index, 1);
+ EXPECT_EQ(toy_rate_ctrl->gop_global_index, 2);
}
// When the model recommends an invalid q, valid range [0, 255],
next_frame = fps_get_frame_stats(first_pass_info,
gf_start_show_idx + gop_coding_frames);
if (next_frame == NULL) {
- *end_of_sequence = (gop_coding_frames == 1);
+ *end_of_sequence = gop_coding_frames == 1 && rc->source_alt_ref_active;
break;
}