shithub: openh264

Download patch

ref: 5c253615d307a6d00cc177da178a9b1c8a2251d3
parent: c6f078dd5ab0b356696ee1d85df7929e9b72b4ab
author: sherpya <sherpya@netfarm.it>
date: Sun Feb 4 04:36:39 EST 2018

call _set_FMA3_enable only on vs 2013 (avx2 bug)

ref link:
http://web.archive.org/web/20150325003447/http://connect.microsoft.com/VisualStudio/feedback/details/811093

this fixes the build on mingw

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