Allow 1-pass encode to use soft coeff quantization
Allow the use of soft coeff quantization in 1 pass encode setting.
STATS_CHANGED
Change-Id: I45c38485bb26e9eb8931b6c09dda36d0957a57aa
diff --git a/av1/encoder/speed_features.c b/av1/encoder/speed_features.c
index 0ed6e09..c0eee79 100644
--- a/av1/encoder/speed_features.c
+++ b/av1/encoder/speed_features.c
@@ -908,10 +908,8 @@
if (oxcf->pass == 1) sf->optimize_coefficients = NO_TRELLIS_OPT;
// No recode or trellis for 1 pass.
- if (oxcf->pass == 0) {
- sf->recode_loop = DISALLOW_RECODE;
- sf->optimize_coefficients = NO_TRELLIS_OPT;
- }
+ if (oxcf->pass == 0) sf->recode_loop = DISALLOW_RECODE;
+
// FIXME: trellis not very efficient for quantization matrices
if (oxcf->using_qm) sf->optimize_coefficients = NO_TRELLIS_OPT;