diff --git a/x264.c b/x264.c index f7786ce..8986400 100644 --- a/x264.c +++ b/x264.c @@ -43,6 +43,8 @@ #define SetConsoleTitle(t) #endif +#include + uint8_t *mux_buffer = NULL; int mux_buffer_size = 0; @@ -91,6 +93,10 @@ int main( int argc, char **argv ) cli_opt_t opt; int ret; + unsigned int cw = _controlfp(0, 0); + cw &= ~(_EM_OVERFLOW|_EM_UNDERFLOW|_EM_ZERODIVIDE|_EM_INVALID); + _controlfp( cw, _MCW_EM ); + #ifdef PTW32_STATIC_LIB pthread_win32_process_attach_np(); pthread_win32_thread_attach_np();