diff options
author | Wan-Teh Chang <wtc@google.com> | 2023-11-30 15:37:12 -0800 |
---|---|---|
committer | Wan-Teh Chang <wtc@google.com> | 2023-11-30 16:10:04 -0800 |
commit | 15c2a9a02fa9049430c010c9dea2339440a03add (patch) | |
tree | 313e496646c59bc76d1d8825068d8983d728f19e | |
parent | 2f3d3726b23fb02cda91150694c082669eb31939 (diff) | |
download | libvpx-15c2a9a02fa9049430c010c9dea2339440a03add.tar.gz |
Add a test for b/312517065
Bug: b/312517065
Change-Id: I6b5529a8e034fb0468f110e420fafb4944a19d0f
-rw-r--r-- | test/encode_api_test.cc | 14 |
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 *> { |