shithub: libvpx

Download patch

ref: 9a9c01217ba56807811f44c29fda560b35535c53
parent: 6cd224f3589afb452e2d385bcdcc753d33565bee
parent: dd601bb0671eb9bf4b9c9159e2ee2085610c1e4b
author: Jerome Jiang <jianj@google.com>
date: Fri Aug 10 12:43:31 EDT 2018

Merge "Fix frame drop threshold in vp9 datarate test."

--- 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);
   }
 }