ref: e6058ea06119f86d45eafc5a517b74a865f198fe
parent: 28f947359d13c19595c370e10078835a885f8292
parent: 2a03d0d22bb6926ca81f208c011cfe6c38247932
author: Yaowu Xu <[email protected]>
date: Fri Mar 14 09:27:32 EDT 2014
Merge "change to save rdmult value correctly"
--- a/vp9/encoder/vp9_encodeframe.c
+++ b/vp9/encoder/vp9_encodeframe.c
@@ -1022,7 +1022,7 @@
struct macroblock_plane *const p = x->plane;
struct macroblockd_plane *const pd = xd->plane;
const AQ_MODE aq_mode = cpi->oxcf.aq_mode;
- int i, orig_rdmult = x->rdmult;
+ int i, orig_rdmult;
double rdmult_ratio;
vp9_clear_system_state();
@@ -1077,6 +1077,8 @@
vp9_init_plane_quantizers(cpi, x);
}
+ // Save rdmult before it might be changed, so it can be restored later.
+ orig_rdmult = x->rdmult;
if (cpi->oxcf.tuning == VP8_TUNE_SSIM)
activity_masking(cpi, x);