From f05122d35cf9b11d309c412157e0f250426f6de4 Mon Sep 17 00:00:00 2001 From: Wan-Teh Chang Date: Thu, 9 Nov 2023 18:35:51 -0800 Subject: 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 --- test/encode_api_test.cc | 7 +++++-- 1 file 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 -- cgit v1.2.3