Fix gf_group->frame_end assignment
authorJingning Han <jingning@google.com>
Mon, 5 Nov 2018 23:42:20 +0000 (15:42 -0800)
committerJingning Han <jingning@google.com>
Mon, 5 Nov 2018 23:42:20 +0000 (15:42 -0800)
The previous value was set off by 1. Use the correct value.

Change-Id: I1ce53cc99063ce31e7ab1c43c6e444cb9a1972db

vp9/encoder/vp9_firstpass.c

index bed5449..5924430 100644 (file)
@@ -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.