shithub: libvpx

Download patch

ref: dd601bb0671eb9bf4b9c9159e2ee2085610c1e4b
parent: ada6a428f0b916381c69ee284efaf39fddb7aa60
author: Jerome Jiang <[email protected]>
date: Fri Aug 10 04:26:48 EDT 2018

Fix frame drop threshold in vp9 datarate test.

Change-Id: Ifbd753183782e680a9ae77c55d75f4d9b3fb2477

--- a/test/vp9_datarate_test.cc
+++ b/test/vp9_datarate_test.cc
@@ -627,7 +627,7 @@
 
   ::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 @@
         << 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);
   }
 }