]> granicus.if.org Git - libvpx/commitdiff
Remove redundant assignments in define_gf_group_structure()
authorJingning Han <jingning@google.com>
Mon, 5 Nov 2018 19:15:24 +0000 (11:15 -0800)
committerJingning Han <jingning@google.com>
Mon, 5 Nov 2018 19:16:43 +0000 (11:16 -0800)
The functionality has been covered in the above
set_gf_overlay_frame_type() call.

Change-Id: Id4049cd9a1a5a9bad7ea62c412fcb557afa9a572

vp9/encoder/vp9_firstpass.c

index 488dab2b42544241db5480d390a8092da84b2bfb..b28ff2e7db65113d609306a55d3aa9a7949c6e91 100644 (file)
@@ -2241,16 +2241,7 @@ static int define_gf_group_structure(VP9_COMP *cpi) {
   // We need to configure the frame at the end of the sequence + 1 that will be
   // the start frame for the next group. Otherwise prior to the call to
   // vp9_rc_get_second_pass_params() the data will be undefined.
-
   set_gf_overlay_frame_type(gf_group, frame_index, rc->source_alt_ref_pending);
-
-  if (rc->source_alt_ref_pending) {
-    gf_group->update_type[frame_index] = OVERLAY_UPDATE;
-    gf_group->rf_level[frame_index] = INTER_NORMAL;
-  } else {
-    gf_group->update_type[frame_index] = GF_UPDATE;
-    gf_group->rf_level[frame_index] = GF_ARF_STD;
-  }
   gf_group->arf_src_offset[frame_index] = 0;
   gf_group->frame_gop_index[frame_index] = rc->baseline_gf_interval;