Run bitrate overflow test only on 64bit systems
authorJerome Jiang <jianj@google.com>
Thu, 19 Oct 2023 14:06:50 +0000 (10:06 -0400)
committerJerome Jiang <jianj@google.com>
Thu, 19 Oct 2023 15:36:47 +0000 (11:36 -0400)
Frame size caps the target bitrate internally, so the frame size needs
to be large enough to reproduce the target bitrate overflow in the
fuzzing test.

However the frame size needed exceeds the max buffer allowed on 32bit
system defined by VPX_MAX_ALLOCABLE_MEMORY

Bug: chromium:1492864

Change-Id: Ia3a9a78cd35516373897039a7769b492e29e8450

test/encode_api_test.cc

index 8e90af9..cf89fd1 100644 (file)
@@ -409,6 +409,7 @@ TEST(EncodeAPI, ConfigResizeChangeThreadCount) {
 }
 
 #if CONFIG_VP9_ENCODER
+#if VPX_ARCH_X86_64 || VPX_ARCH_AARCH64
 TEST(EncodeAPI, ConfigLargeTargetBitrateVp9) {
   constexpr int kWidth = 16383;
   constexpr int kHeight = 16383;
@@ -431,6 +432,7 @@ TEST(EncodeAPI, ConfigLargeTargetBitrateVp9) {
       << "target bitrate: " << cfg.rc_target_bitrate << " framerate: "
       << static_cast<double>(cfg.g_timebase.den) / cfg.g_timebase.num;
 }
+#endif  // VPX_ARCH_X86_64 || VPX_ARCH_AARCH64
 
 class EncodeApiGetTplStatsTest
     : public ::libvpx_test::EncoderTest,