]> granicus.if.org Git - libvpx/commitdiff
Change initialization of static_scene_max_gf_interval.
authorPaul Wilkins <paulwilkins@google.com>
Thu, 16 Oct 2014 11:39:14 +0000 (12:39 +0100)
committerPaul Wilkins <paulwilkins@google.com>
Thu, 16 Oct 2014 15:18:29 +0000 (16:18 +0100)
This removes an unnecessary restriction that causes
a problem (noticed by AWG) when the forced key frame
interval is set to a very small value, such as 10. In this case
we were being forced to code minimal length GF groups.

Change-Id: I76ef5861a09638ff51f61fea02359554184ada53

vp9/encoder/vp9_ratectrl.c

index ef32fe179060977817e2210c8a92b159dc4fab9b..65bca669a89d622bc387b62fdc1540bb59861b28 100644 (file)
@@ -1500,9 +1500,7 @@ void vp9_rc_set_gf_max_interval(const VP9_COMP *const cpi,
   rc->max_gf_interval = 16;
 
   // Extended interval for genuinely static scenes
-  rc->static_scene_max_gf_interval = oxcf->key_freq >> 1;
-  if (rc->static_scene_max_gf_interval > (MAX_LAG_BUFFERS * 2))
-    rc->static_scene_max_gf_interval = MAX_LAG_BUFFERS * 2;
+  rc->static_scene_max_gf_interval = MAX_LAG_BUFFERS * 2;
 
   if (is_altref_enabled(cpi)) {
     if (rc->static_scene_max_gf_interval > oxcf->lag_in_frames - 1)