]> granicus.if.org Git - libvpx/commitdiff
Fix frame drop threshold in vp9 datarate test.
authorJerome Jiang <jianj@google.com>
Fri, 10 Aug 2018 15:26:48 +0000 (08:26 -0700)
committerJerome Jiang <jianj@google.com>
Fri, 10 Aug 2018 15:26:48 +0000 (08:26 -0700)
Change-Id: Ifbd753183782e680a9ae77c55d75f4d9b3fb2477

test/vp9_datarate_test.cc

index 02bead0357f2ccba2ff07afb50fc7c2e9d579d3e..b700f2a9c6f5e761b259d0123d15e8dcbbfc92d9 100644 (file)
@@ -627,7 +627,7 @@ TEST_P(DatarateTestVP9LargeOneBR,
 
   ::libvpx_test::I420VideoSource video("niklas_640_480_30.yuv", 640, 480, 30, 1,
                                        0, 400);
-  cfg_.rc_target_bitrate = 400;
+  cfg_.rc_target_bitrate = 200;
   ResetModel();
   // 40-20-40 bitrate allocation for 3 temporal layers.
   cfg_.layer_target_bitrate[0] = 40 * cfg_.rc_target_bitrate / 100;
@@ -650,8 +650,8 @@ TEST_P(DatarateTestVP9LargeOneBR,
         << j;
     // Expect some frame drops in this test: for this 200 frames test,
     // expect at least 10% and not more than 60% drops.
-    ASSERT_GE(num_drops_, 40);
-    ASSERT_LE(num_drops_, 240);
+    ASSERT_GE(num_drops_, 20);
+    ASSERT_LE(num_drops_, 280);
   }
 }