summaryrefslogtreecommitdiff
path: root/test/realtime_test.cc
diff options
context:
space:
mode:
authorJerome Jiang <jianj@google.com>2020-07-07 17:44:13 -0700
committerJerome Jiang <jianj@google.com>2020-07-09 20:25:45 -0700
commitbaefbe85d09f7b884923437d9413b3e6ba4a1c7d (patch)
treef0a68ce7983ae215e717875976da5ff2289e7482 /test/realtime_test.cc
parenta1cee8dc919df1980d802e1a9bce1259ec34cba8 (diff)
downloadlibvpx-baefbe85d09f7b884923437d9413b3e6ba4a1c7d.tar
libvpx-baefbe85d09f7b884923437d9413b3e6ba4a1c7d.tar.gz
libvpx-baefbe85d09f7b884923437d9413b3e6ba4a1c7d.tar.bz2
libvpx-baefbe85d09f7b884923437d9413b3e6ba4a1c7d.zip
Cap target bitrate to raw rate internally
BUG=webm:1685 Change-Id: Ida72fe854fadb19c3745724e74b67d88087eb83c
Diffstat (limited to 'test/realtime_test.cc')
-rw-r--r--test/realtime_test.cc7
1 files changed, 1 insertions, 6 deletions
diff --git a/test/realtime_test.cc b/test/realtime_test.cc
index 25a933bcc..63a5347d9 100644
--- a/test/realtime_test.cc
+++ b/test/realtime_test.cc
@@ -63,15 +63,10 @@ TEST_P(RealtimeTest, RealtimeFirstPassProducesFrames) {
EXPECT_EQ(kFramesToEncode, frame_packets_);
}
-// TODO(https://crbug.com/webm/1685): the following passes -fsanitize=undefined
-// with bitrate set to 140000000 for vp8 and 128000 for vp9. There are
-// additional failures with lower bitrates using -fsanitize=integer.
-TEST_P(RealtimeTest, DISABLED_IntegerOverflow) {
+TEST_P(RealtimeTest, IntegerOverflow) {
::libvpx_test::RandomVideoSource video;
video.SetSize(800, 480);
video.set_limit(20);
- // TODO(https://crbug.com/webm/1685): this should be silently capped
- // internally to the raw yuv rate or below.
cfg_.rc_target_bitrate = 140000000;
ASSERT_NO_FATAL_FAILURE(RunLoop(&video));
}