aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWan-Teh Chang <wtc@google.com>2023-12-01 02:18:21 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2023-12-01 02:18:21 +0000
commit4e29b9638d7df154d74e5500232112c95b367d30 (patch)
tree7528112a39478c9e9baa33d89260d9bf227110fa
parent97a0d139ce077d02a64a5bba1870104a43a0217f (diff)
parent15c2a9a02fa9049430c010c9dea2339440a03add (diff)
downloadlibvpx-4e29b9638d7df154d74e5500232112c95b367d30.tar.gz
Merge "Add a test for b/312517065" into main
-rw-r--r--test/encode_api_test.cc14
1 files changed, 13 insertions, 1 deletions
diff --git a/test/encode_api_test.cc b/test/encode_api_test.cc
index da3676f6b..7ca2b5941 100644
--- a/test/encode_api_test.cc
+++ b/test/encode_api_test.cc
@@ -601,7 +601,7 @@ TEST(EncodeAPI, PrevMiCheckNullptr) {
encoder.Encode(false);
}
-// This is a test case from clusterfuzz: based on 310477034.
+// This is a test case from clusterfuzz: based on b/310477034.
// Encode a few frames with multiple change config call
// with different frame size.
TEST(EncodeAPI, MultipleChangeConfigResize) {
@@ -673,6 +673,18 @@ TEST(EncodeAPI, DynamicDeadlineChange) {
encoder.Encode(false);
}
+// This is a test case from clusterfuzz: based on b/312517065.
+TEST(EncodeAPI, Buganizer312517065) {
+ VP9Encoder encoder(4);
+ encoder.Configure(0, 1060, 437, VPX_CBR, VPX_DL_REALTIME);
+ encoder.Encode(true);
+ encoder.Configure(10, 33, 437, VPX_VBR, VPX_DL_GOOD_QUALITY);
+ encoder.Encode(false);
+ encoder.Configure(6, 327, 269, VPX_VBR, VPX_DL_GOOD_QUALITY);
+ encoder.Configure(15, 1060, 437, VPX_CBR, VPX_DL_REALTIME);
+ encoder.Encode(false);
+}
+
class EncodeApiGetTplStatsTest
: public ::libvpx_test::EncoderTest,
public ::testing::TestWithParam<const libvpx_test::CodecFactory *> {