diff options
author | James Zern <jzern@google.com> | 2022-07-27 13:29:41 -0700 |
---|---|---|
committer | James Zern <jzern@google.com> | 2022-07-27 15:37:11 -0700 |
commit | 7dab508cd9c8fc8f0ac44bfb380c31e25919d883 (patch) | |
tree | 3b76d535cfa80b306301748e82efd14eb2198a46 /test/encode_test_driver.cc | |
parent | ed78231aa54c131018c0c9415cf416beac97a698 (diff) | |
download | libvpx-7dab508cd9c8fc8f0ac44bfb380c31e25919d883.tar libvpx-7dab508cd9c8fc8f0ac44bfb380c31e25919d883.tar.gz libvpx-7dab508cd9c8fc8f0ac44bfb380c31e25919d883.tar.bz2 libvpx-7dab508cd9c8fc8f0ac44bfb380c31e25919d883.zip |
encode_test_driver: normalize frame_flags type
use vpx_enc_frame_flags_t; this avoids int -> unsigned conversion
warnings; reported w/clang -fsanitize=integer:
test/error_resilience_test.cc:95:9: runtime error: implicit conversion
from type 'int' of value -12845057 (32-bit, signed) to type 'unsigned
long' changed the value to 4282122239 (32-bit, unsigned)
Bug: b/229626362
Change-Id: I0fc1dbe44a258f397cf1a05347d8cb86ee70b1b8
Diffstat (limited to 'test/encode_test_driver.cc')
-rw-r--r-- | test/encode_test_driver.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/encode_test_driver.cc b/test/encode_test_driver.cc index 9ca15ae4d..d3feeee34 100644 --- a/test/encode_test_driver.cc +++ b/test/encode_test_driver.cc @@ -52,7 +52,8 @@ void Encoder::InitEncoder(VideoSource *video) { } } -void Encoder::EncodeFrame(VideoSource *video, const unsigned long frame_flags) { +void Encoder::EncodeFrame(VideoSource *video, + const vpx_enc_frame_flags_t frame_flags) { if (video->img()) { EncodeFrameInternal(*video, frame_flags); } else { @@ -70,7 +71,7 @@ void Encoder::EncodeFrame(VideoSource *video, const unsigned long frame_flags) { } void Encoder::EncodeFrameInternal(const VideoSource &video, - const unsigned long frame_flags) { + const vpx_enc_frame_flags_t frame_flags) { vpx_codec_err_t res; const vpx_image_t *img = video.img(); |