]> granicus.if.org Git - libvpx/commitdiff
Initialize pass variable in tile test.
authorRonald S. Bultje <rbultje@google.com>
Fri, 1 Mar 2013 20:43:10 +0000 (12:43 -0800)
committerRonald S. Bultje <rbultje@google.com>
Fri, 1 Mar 2013 20:43:10 +0000 (12:43 -0800)
Change-Id: I7977694223521404fc69f29ae2cff03e36e87299

test/encode_test_driver.cc
test/tile_independence_test.cc

index 39d154b139b75a728918aa9820f5f747d9445bfd..3265ff939a0434b6dc3f1cb81bd76f17a7e7fe5b 100644 (file)
@@ -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;
 
index c9f82ef8826851e4cc6c6ac9a03d96663256b3df..acff0fdfb84e6c7b2be780fd19bb62d7f18ebdfc 100644 (file)
@@ -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,