shithub: opus-tools

Download patch

ref: 0e1665104b189774fef617caa7355059a7306c67
parent: 45a5ffad78f02f602129dd411ab9840c94dea751
author: Gregory Maxwell <greg@xiph.org>
date: Thu Jul 12 11:17:55 EDT 2012

Removing whitespace, fix inclusion of time.h.

--- a/src/opusenc.c
+++ b/src/opusenc.c
@@ -36,9 +36,9 @@
 
 #include <stdlib.h>
 #include <string.h>
-#ifndef _WIN32
+#if (!defined WIN32 && !defined _WIN32) || defined(__MINGW32__)
 #include <unistd.h>
-#include <sys/time.h>
+#include <time.h>
 #endif
 #include <math.h>
 
@@ -873,7 +873,7 @@
     }
 
     if(!quiet){
-      stop_time = time(NULL);      
+      stop_time = time(NULL);
       if(stop_time>last_spin){
         double estbitrate;
         double coded_seconds=nb_encoded/(double)coding_rate;