From 17a26eb4437d5d02a2e44c271fe6416eb253c98d Mon Sep 17 00:00:00 2001 From: Dmitry Kovalev Date: Mon, 18 Aug 2014 14:11:59 -0700 Subject: [PATCH] Replacing SVC oxcf->mode check with oxcf->pass check. oxcf->pass is used in all other places in similar contexts. Change-Id: I9de3a5f24311838d5a6dc3dd470d258cb189ff59 --- vp9/encoder/vp9_encoder.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/vp9/encoder/vp9_encoder.c b/vp9/encoder/vp9_encoder.c index 58059f85d..60f20c12d 100644 --- a/vp9/encoder/vp9_encoder.c +++ b/vp9/encoder/vp9_encoder.c @@ -525,10 +525,8 @@ static void init_config(struct VP9_COMP *cpi, VP9EncoderConfig *oxcf) { // Temporal scalability. cpi->svc.number_temporal_layers = oxcf->ts_number_layers; - if ((cpi->svc.number_temporal_layers > 1 && - cpi->oxcf.rc_mode == VPX_CBR) || - (cpi->svc.number_spatial_layers > 1 && - cpi->oxcf.mode == TWO_PASS_SECOND_BEST)) { + if ((cpi->svc.number_temporal_layers > 1 && cpi->oxcf.rc_mode == VPX_CBR) || + (cpi->svc.number_spatial_layers > 1 && cpi->oxcf.pass == 2)) { vp9_init_layer_context(cpi); }