From: Yunqing Wang Date: Fri, 3 Feb 2017 16:29:21 +0000 (-0800) Subject: Fix visual studio build failure X-Git-Tag: v1.7.0~752 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2a21b45fdcb82cac39ba36ab5cf55b433b45323a;p=platform%2Fupstream%2Flibvpx.git 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 --- diff --git a/test/vp9_ethread_test.cc b/test/vp9_ethread_test.cc index d779930..21e34d6 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)