shithub: openh264

Download patch

ref: e1d96aeaf351749134719147f6096941f7adcc0a
parent: c5ea53f0af788533e16c1b6925736b0bbb518037
author: Martin Storsjö <martin@martin.st>
date: Sat Jan 25 09:16:57 EST 2014

Fix the old MSVC version of WelsGetTimeOfDay

The _ftime function returns void.

This fixes building on MSVC 2005.

--- a/codec/decoder/core/src/utils.cpp
+++ b/codec/decoder/core/src/utils.cpp
@@ -178,7 +178,8 @@
 }
 
 int32_t WelsGetTimeOfDay (SWelsTime* pTp) {
-  return _ftime (pTp);
+  _ftime (pTp);
+  return 0;
 }
 
 int32_t WelsStrftime (str_t* pBuffer, int32_t iSize, const str_t* kpFormat, const SWelsTime* kpTp) {