summaryrefslogtreecommitdiff
path: root/vp9/encoder
diff options
context:
space:
mode:
authorPaul Wilkins <paulwilkins@google.com>2014-10-16 12:39:14 +0100
committerPaul Wilkins <paulwilkins@google.com>2014-10-16 16:18:29 +0100
commit716ae78ce43b11b338332e55ef555194fb4bb904 (patch)
treea7cf68b1f6f13c2c1c1edc32f49beec1ac91c570 /vp9/encoder
parent68b550f5510a567583d9cdd9f60f44a280e611a7 (diff)
downloadlibvpx-716ae78ce43b11b338332e55ef555194fb4bb904.tar
libvpx-716ae78ce43b11b338332e55ef555194fb4bb904.tar.gz
libvpx-716ae78ce43b11b338332e55ef555194fb4bb904.tar.bz2
libvpx-716ae78ce43b11b338332e55ef555194fb4bb904.zip
Change initialization of static_scene_max_gf_interval.
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
Diffstat (limited to 'vp9/encoder')
-rw-r--r--vp9/encoder/vp9_ratectrl.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/vp9/encoder/vp9_ratectrl.c b/vp9/encoder/vp9_ratectrl.c
index ef32fe179..65bca669a 100644
--- a/vp9/encoder/vp9_ratectrl.c
+++ b/vp9/encoder/vp9_ratectrl.c
@@ -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)