From 2a21b45fdcb82cac39ba36ab5cf55b433b45323a Mon Sep 17 00:00:00 2001 From: Yunqing Wang Date: Fri, 3 Feb 2017 08:29:21 -0800 Subject: [PATCH] Fix visual studio build failure Fixed the following issue. ..\test\vp9_ethread_test.cc(69): warning C4805: '|=' : unsafe mix of type 'bool' and type 'int' in operation [C:\src\buildbot\test-libvpx\tests\dveCPjwhBE\.build-x86_64-win64-vs10\test_libvpx.vcxproj] ..\test\vp9_ethread_test.cc(69): warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning) [C:\src\buildbot\test-libvpx\tests\dveCPjwhBE\.build-x86_64-win64-vs10\test_libvpx.vcxproj] Change-Id: I37f897cf12a0b7500d2fcbac9e4615f08a83fdb4 --- test/vp9_ethread_test.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/vp9_ethread_test.cc b/test/vp9_ethread_test.cc index d7799301d..21e34d6c4 100644 --- a/test/vp9_ethread_test.cc +++ b/test/vp9_ethread_test.cc @@ -40,7 +40,7 @@ class VPxFirstPassEncoderThreadTest init_flags_ = VPX_CODEC_USE_PSNR; new_mt_mode_ = 1; - first_pass_only_ = 1; + first_pass_only_ = true; firstpass_stats_.buf = NULL; firstpass_stats_.sz = 0; } @@ -110,7 +110,7 @@ class VPxFirstPassEncoderThreadTest ::libvpx_test::TestMode encoding_mode_; int set_cpu_used_; int new_mt_mode_; - int first_pass_only_; + bool first_pass_only_; vpx_fixed_buf_t firstpass_stats_; }; @@ -147,7 +147,7 @@ static void compare_fp_stats(vpx_fixed_buf_t *fp_stats) { TEST_P(VPxFirstPassEncoderThreadTest, FirstPassStatsTest) { ::libvpx_test::Y4mVideoSource video("niklas_1280_720_30.y4m", 0, 60); - first_pass_only_ = 1; + first_pass_only_ = true; cfg_.rc_target_bitrate = 1000; // Test new_mt_mode: 0 vs 1 (threads = 1, tiles_ = 0) -- 2.40.0