shithub: opus

Download patch

ref: c52d76894337c64617104e697befb18ccf33b564
parent: da290c8899bc12226a4adde6972ca4213eec6870
author: Jean-Marc Valin <[email protected]>
date: Tue Jan 11 04:42:28 EST 2011

Minor fixes to testcases

--- a/tests/ectest.c
+++ b/tests/ectest.c
@@ -202,7 +202,7 @@
           ec_enc_bit_logp(&enc,data[j],logp1[j]);
         }break;
         case 3:{
-          unsigned icdf[2];
+          unsigned char icdf[2];
           icdf[0]=1;
           icdf[1]=0;
           ec_enc_icdf(&enc,data[j],icdf,logp1[j]);
@@ -244,7 +244,7 @@
           sym=ec_dec_bit_logp(&dec,logp1[j]);
         }break;
         case 3:{
-          unsigned icdf[2];
+          unsigned char icdf[2];
           icdf[0]=1;
           icdf[1]=0;
           sym=ec_dec_icdf(&dec,icdf,logp1[j]);
--- a/tests/tandem-test.c
+++ b/tests/tandem-test.c
@@ -46,6 +46,9 @@
 #include <math.h>
 #include <string.h>
 
+#ifndef _MSC_VER
+#include <unistd.h>
+#endif
 
 int async_tandem(int rate, int frame_size, int channels, int bitrate_min,
                  int bitrate_max)