diff options
Diffstat (limited to 'vp9/encoder/vp9_firstpass.c')
-rw-r--r-- | vp9/encoder/vp9_firstpass.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/vp9/encoder/vp9_firstpass.c b/vp9/encoder/vp9_firstpass.c index ad7e6d821..6e44e604c 100644 --- a/vp9/encoder/vp9_firstpass.c +++ b/vp9/encoder/vp9_firstpass.c @@ -2093,14 +2093,19 @@ void vp9_second_pass(VP9_COMP *cpi) { cpi->twopass.est_max_qcorrection_factor = 1.0; // Set a cq_level in constrained quality mode. + // Commenting this code out for now since it does not seem to be + // working well. + /* if (cpi->oxcf.end_usage == USAGE_CONSTRAINED_QUALITY) { int est_cq = estimate_cq(cpi, &cpi->twopass.total_left_stats, - section_target_bandwidth); + section_target_bandwidth); - cpi->cq_target_quality = cpi->oxcf.cq_level; if (est_cq > cpi->cq_target_quality) cpi->cq_target_quality = est_cq; + else + cpi->cq_target_quality = cpi->oxcf.cq_level; } + */ // guess at maxq needed in 2nd pass cpi->twopass.maxq_max_limit = cpi->worst_quality; |