From: Jingning Han Date: Mon, 5 Nov 2018 23:42:20 +0000 (-0800) Subject: Fix gf_group->frame_end assignment X-Git-Tag: v1.8.0~174^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=47b6d3c41827f40a5f726c97ce5bc103f5ad0ed9;p=libvpx Fix gf_group->frame_end assignment The previous value was set off by 1. Use the correct value. Change-Id: I1ce53cc99063ce31e7ab1c43c6e444cb9a1972db --- diff --git a/vp9/encoder/vp9_firstpass.c b/vp9/encoder/vp9_firstpass.c index bed54499a..5924430de 100644 --- a/vp9/encoder/vp9_firstpass.c +++ b/vp9/encoder/vp9_firstpass.c @@ -2188,7 +2188,7 @@ static void define_gf_group_structure(VP9_COMP *cpi) { key_frame = cpi->common.frame_type == KEY_FRAME; gf_group->frame_start = cpi->common.current_video_frame; - gf_group->frame_end = gf_group->frame_start + rc->baseline_gf_interval - 1; + gf_group->frame_end = gf_group->frame_start + rc->baseline_gf_interval; // For key frames the frame target rate is already set and it // is also the golden frame.