| Index: source/libvpx/test/datarate_test.cc
|
| diff --git a/source/libvpx/test/datarate_test.cc b/source/libvpx/test/datarate_test.cc
|
| index 94efeae97ac6e99096bd770a18ac06eff4402108..fc9e1f425fd340e06243ce4a748a358c090b5057 100644
|
| --- a/source/libvpx/test/datarate_test.cc
|
| +++ b/source/libvpx/test/datarate_test.cc
|
| @@ -44,9 +44,8 @@ class DatarateTestLarge : public ::libvpx_test::EncoderTest,
|
|
|
| virtual void PreEncodeFrameHook(::libvpx_test::VideoSource *video,
|
| ::libvpx_test::Encoder *encoder) {
|
| - if (video->frame() == 1) {
|
| + if (video->frame() == 0)
|
| encoder->Control(VP8E_SET_NOISE_SENSITIVITY, denoiser_on_);
|
| - }
|
|
|
| if (denoiser_offon_test_) {
|
| ASSERT_GT(denoiser_offon_period_, 0)
|
| @@ -353,7 +352,7 @@ class DatarateTestVP9Large : public ::libvpx_test::EncoderTest,
|
|
|
| virtual void PreEncodeFrameHook(::libvpx_test::VideoSource *video,
|
| ::libvpx_test::Encoder *encoder) {
|
| - if (video->frame() == 1)
|
| + if (video->frame() == 0)
|
| encoder->Control(VP8E_SET_CPUUSED, set_cpu_used_);
|
|
|
| if (denoiser_offon_test_) {
|
| @@ -368,7 +367,7 @@ class DatarateTestVP9Large : public ::libvpx_test::EncoderTest,
|
| encoder->Control(VP9E_SET_NOISE_SENSITIVITY, denoiser_on_);
|
|
|
| if (cfg_.ts_number_layers > 1) {
|
| - if (video->frame() == 1) {
|
| + if (video->frame() == 0) {
|
| encoder->Control(VP9E_SET_SVC, 1);
|
| }
|
| vpx_svc_layer_id_t layer_id = {0, 0};
|
| @@ -376,9 +375,7 @@ class DatarateTestVP9Large : public ::libvpx_test::EncoderTest,
|
| frame_flags_ = SetFrameFlags(video->frame(), cfg_.ts_number_layers);
|
| layer_id.temporal_layer_id = SetLayerId(video->frame(),
|
| cfg_.ts_number_layers);
|
| - if (video->frame() > 0) {
|
| - encoder->Control(VP9E_SET_SVC_LAYER_ID, &layer_id);
|
| - }
|
| + encoder->Control(VP9E_SET_SVC_LAYER_ID, &layer_id);
|
| }
|
| const vpx_rational_t tb = video->timebase();
|
| timebase_ = static_cast<double>(tb.num) / tb.den;
|
|
|