]> granicus.if.org Git - libvpx/commitdiff
Add a comment in init_gop_frames()
authorJingning Han <jingning@google.com>
Mon, 20 Aug 2018 16:11:50 +0000 (09:11 -0700)
committerJingning Han <jingning@google.com>
Mon, 20 Aug 2018 16:13:06 +0000 (09:13 -0700)
Make the meaning of the operations therein clearer.

Change-Id: I0dce92a4c14218307df098e3da7a1c7cc45008a7

vp9/encoder/vp9_encoder.c

index 771bc0d42d70763cd1b2c3e3529fac10b9fc8492..ff147a8e694f16a350f0a10759ff0331b8e7ce62 100644 (file)
@@ -5512,6 +5512,9 @@ void init_gop_frames(VP9_COMP *cpi, GF_PICTURE *gf_picture,
     ++*tpl_group_frames;
     lst_index = frame_idx;
 
+    // The length of group of pictures is baseline_gf_interval, plus the
+    // beginning golden frame from last GOP, plus the last overlay frame in
+    // the same GOP.
     if (frame_idx == cpi->rc.baseline_gf_interval + 1) break;
   }