shithub: libvpx

Download patch

ref: e2ab65ab7d499a6f4a8e4b3d4de6eb1fde861281
parent: 8f68468917296320f2337bb8c8c4ae2de79e1817
parent: 4664b219a298387c009b393de2c2a023adfaa741
author: Yaowu Xu <yaowu@google.com>
date: Tue Apr 8 03:17:38 EDT 2014

Merge "vp9_ratectrl: change ARF overlays rate correction factor"

--- a/vp9/encoder/vp9_ratectrl.c
+++ b/vp9/encoder/vp9_ratectrl.c
@@ -227,6 +227,7 @@
     return cpi->rc.key_frame_rate_correction_factor;
   } else {
     if ((cpi->refresh_alt_ref_frame || cpi->refresh_golden_frame) &&
+        !cpi->rc.is_src_frame_alt_ref &&
         !(cpi->use_svc && cpi->oxcf.end_usage == USAGE_STREAM_FROM_SERVER))
       return cpi->rc.gf_rate_correction_factor;
     else
@@ -239,6 +240,7 @@
     cpi->rc.key_frame_rate_correction_factor = factor;
   } else {
     if ((cpi->refresh_alt_ref_frame || cpi->refresh_golden_frame) &&
+        !cpi->rc.is_src_frame_alt_ref &&
         !(cpi->use_svc && cpi->oxcf.end_usage == USAGE_STREAM_FROM_SERVER))
       cpi->rc.gf_rate_correction_factor = factor;
     else