From: Jingning Han Date: Mon, 20 Aug 2018 16:11:50 +0000 (-0700) Subject: Add a comment in init_gop_frames() X-Git-Tag: v1.8.0~408 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a5494e3376186b7764ce3789b858e95e642cbd06;p=libvpx Add a comment in init_gop_frames() Make the meaning of the operations therein clearer. Change-Id: I0dce92a4c14218307df098e3da7a1c7cc45008a7 --- diff --git a/vp9/encoder/vp9_encoder.c b/vp9/encoder/vp9_encoder.c index 771bc0d42..ff147a8e6 100644 --- a/vp9/encoder/vp9_encoder.c +++ b/vp9/encoder/vp9_encoder.c @@ -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; }