shithub: openh264

Download patch

ref: ab655c635bf3022b0b90838fc6110fa2b2d9bf04
parent: f3376c2537bf0e8f90dff42fd99eafdf342441f1
parent: 897bcb51c39ecf2ad8f76f2c40978172bd1e8d33
author: guangwei <GuangweiWang@users.noreply.github.com>
date: Thu Jun 15 11:27:18 EDT 2017

Merge pull request #2762 from huili2/log10_crash_fix_vs2013

fix vs2013 crash issue by log10 or pow math function

--- a/codec/encoder/core/inc/param_svc.h
+++ b/codec/encoder/core/inc/param_svc.h
@@ -63,6 +63,9 @@
 * \return   2 based scaling factor
 */
 static inline uint32_t GetLogFactor (float base, float upper) {
+#if defined(_M_X64)
+  _set_FMA3_enable(0);
+#endif
   const double dLog2factor      = log10 (1.0 * upper / base) / log10 (2.0);
   const double dEpsilon         = 0.0001;
   const double dRound           = floor (dLog2factor + 0.5);