diff options
author | Marco Paniconi <marpan@google.com> | 2013-11-13 16:02:54 -0800 |
---|---|---|
committer | Marco Paniconi <marpan@google.com> | 2013-11-13 16:14:31 -0800 |
commit | 9977332615deef53454f3c95c8d9200f8e775f39 (patch) | |
tree | b3d21647e0ab4cacd75a7968a981aed1ce717a16 /vp9/encoder/vp9_onyx_if.c | |
parent | b3c75a2d6c04213e729c8e4cc45ec7f45aa1c38f (diff) | |
download | libvpx-9977332615deef53454f3c95c8d9200f8e775f39.tar libvpx-9977332615deef53454f3c95c8d9200f8e775f39.tar.gz libvpx-9977332615deef53454f3c95c8d9200f8e775f39.tar.bz2 libvpx-9977332615deef53454f3c95c8d9200f8e775f39.zip |
For CBR, keep rate-correction damping factor to 2.
The switch to the rate-correction damping factor
in https://gerrit.chromium.org/gerrit/#/c/67536/ was not conditioned on CBR mode.
Change-Id: I2326704e8ac030a4f7b592dd3fedb94c7dd0644d
Diffstat (limited to 'vp9/encoder/vp9_onyx_if.c')
-rw-r--r-- | vp9/encoder/vp9_onyx_if.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/vp9/encoder/vp9_onyx_if.c b/vp9/encoder/vp9_onyx_if.c index 8a9834310..926e91f71 100644 --- a/vp9/encoder/vp9_onyx_if.c +++ b/vp9/encoder/vp9_onyx_if.c @@ -3443,7 +3443,9 @@ static void encode_frame_to_data_rate(VP9_COMP *cpi, // Post encode loop adjustment of Q prediction. if (!active_worst_qchanged) - vp9_update_rate_correction_factors(cpi, (cpi->sf.recode_loop) ? 2 : 0); + vp9_update_rate_correction_factors(cpi, (cpi->sf.recode_loop || + cpi->oxcf.end_usage == USAGE_STREAM_FROM_SERVER) ? 2 : 0); + cpi->last_q[cm->frame_type] = cm->base_qindex; |