From 013014f81b13970a5a2d6744a14528defc3dc7e1 Mon Sep 17 00:00:00 2001 From: Jerome Jiang Date: Tue, 31 Jul 2018 20:27:38 -0700 Subject: [PATCH] vp9 svc: Fix the scaling factor in intra only test for 1 SL. Change-Id: I7f71c165f6d3a6d02229798286269389c3c5528c --- test/svc_end_to_end_test.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/svc_end_to_end_test.cc b/test/svc_end_to_end_test.cc index c90c8751c..3ee7fb316 100644 --- a/test/svc_end_to_end_test.cc +++ b/test/svc_end_to_end_test.cc @@ -46,7 +46,10 @@ class SyncFrameOnePassCbrSvc : public ::svc_test::OnePassCbrSvc, SetConfig(num_temporal_layer); cfg_.ss_number_layers = num_spatial_layer; cfg_.ts_number_layers = num_temporal_layer; - if (num_spatial_layer == 2) { + if (num_spatial_layer == 1) { + svc_params_.scaling_factor_num[0] = 288; + svc_params_.scaling_factor_den[0] = 288; + } else if (num_spatial_layer == 2) { svc_params_.scaling_factor_num[0] = 144; svc_params_.scaling_factor_den[0] = 288; svc_params_.scaling_factor_num[1] = 288; -- 2.40.0