shithub: openh264

Download patch

ref: bc9ee5b145a0a50b8d9c66073478eda424244f6d
parent: fc8fcc2e626cd146fcc724cf8575c21aa5653334
parent: 42592217c2f8719b0bbdd1f7500ad7b3eae23d10
author: volvet <qizh@cisco.com>
date: Tue Mar 4 15:57:57 EST 2014

Merge pull request #406 from mstorsjo/use-proper-define

Use the windows INFINITE define instead of manually casting -1 to uint32_t

--- a/codec/common/WelsThreadLib.cpp
+++ b/codec/common/WelsThreadLib.cpp
@@ -123,7 +123,7 @@
 }
 
 WELS_THREAD_ERROR_CODE    WelsMultipleEventsWaitAllBlocking (uint32_t nCount, WELS_EVENT* event_list) {
-  return WaitForMultipleObjects (nCount, event_list, TRUE, (uint32_t) - 1);
+  return WaitForMultipleObjects (nCount, event_list, TRUE, INFINITE);
 }
 
 WELS_THREAD_ERROR_CODE    WelsEventDestroy (WELS_EVENT* event) {