shithub: libvpx

Download patch

ref: 2a21b45fdcb82cac39ba36ab5cf55b433b45323a
parent: a16ca80b09cb4d698606d706486c2d22577af124
author: Yunqing Wang <yunqingwang@google.com>
date: Fri Feb 3 03:29:21 EST 2017

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

--- a/test/vp9_ethread_test.cc
+++ b/test/vp9_ethread_test.cc
@@ -40,7 +40,7 @@
     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 @@
   ::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 @@
 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)