From: Ronald S. Bultje Date: Fri, 1 Mar 2013 20:43:10 +0000 (-0800) Subject: Initialize pass variable in tile test. X-Git-Tag: v1.3.0~1151^2~93 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e189edfeb11d3433c8ca3c35fe8d5610ef2444f3;p=platform%2Fupstream%2Flibvpx.git Initialize pass variable in tile test. Change-Id: I7977694223521404fc69f29ae2cff03e36e87299 --- diff --git a/test/encode_test_driver.cc b/test/encode_test_driver.cc index 39d154b..3265ff9 100644 --- a/test/encode_test_driver.cc +++ b/test/encode_test_driver.cc @@ -140,6 +140,7 @@ void EncoderTest::RunLoop(VideoSource *video) { stats_.Reset(); + ASSERT_TRUE(passes_ == 1 || passes_ == 2); for (unsigned int pass = 0; pass < passes_; pass++) { last_pts_ = 0; diff --git a/test/tile_independence_test.cc b/test/tile_independence_test.cc index c9f82ef..acff0fd 100644 --- a/test/tile_independence_test.cc +++ b/test/tile_independence_test.cc @@ -45,6 +45,7 @@ class TileIndependenceTest : public ::libvpx_test::EncoderTest, virtual void SetUp() { InitializeConfig(); + SetMode(libvpx_test::kTwoPassGood); } virtual void PreEncodeFrameHook(libvpx_test::VideoSource *video,