aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWan-Teh Chang <wtc@google.com>2023-11-09 18:35:51 -0800
committerWan-Teh Chang <wtc@google.com>2023-11-09 18:35:51 -0800
commitf05122d35cf9b11d309c412157e0f250426f6de4 (patch)
tree4e1e19b985b5637f4f68cb0581a4046cf6f354b7
parent97833b61ee01728ec8d65460275662e0bdc34cb4 (diff)
downloadlibvpx-f05122d35cf9b11d309c412157e0f250426f6de4.tar.gz
Fix ClangTidy warnings
Most are related to include-what-you-use. One is to avoid using the unsigned long type explicitly (by passing VPX_DL_REALTIME directly to vpx_codec_encode). Change-Id: Ieaf3418382ad8516cb4b172f7678893286fcb8cf
-rw-r--r--test/encode_api_test.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/encode_api_test.cc b/test/encode_api_test.cc
index 012e54a33..770052c85 100644
--- a/test/encode_api_test.cc
+++ b/test/encode_api_test.cc
@@ -21,6 +21,9 @@
#include "./vpx_config.h"
#include "vpx/vp8cx.h"
+#include "vpx/vpx_codec.h"
+#include "vpx/vpx_encoder.h"
+#include "vpx/vpx_image.h"
#include "vpx/vpx_tpl.h"
namespace {
@@ -165,10 +168,10 @@ TEST(EncodeAPI, HugeFramerateVp8) {
}
// Encode a frame.
- const unsigned long deadline = VPX_DL_REALTIME;
// Up to this point cpi->framerate is 30. Now pass a duration of only 1. This
// causes cpi->framerate to become 10,000,000.
- ASSERT_EQ(vpx_codec_encode(&enc, image, 0, 1, 0, deadline), VPX_CODEC_OK);
+ ASSERT_EQ(vpx_codec_encode(&enc, image, 0, 1, 0, VPX_DL_REALTIME),
+ VPX_CODEC_OK);
// Change to the same config. Since cpi->framerate is now huge, when it is
// used to calculate raw_target_rate (bit rate of uncompressed frames), the