shithub: opus

Download patch

ref: 4effd308828dd6bbbd1ad210c63d6518161b640d
parent: 715b37f6d65b855c2ac2677ecafef6f9f7290de1
author: Gregory Maxwell <[email protected]>
date: Mon Jul 15 11:51:14 EDT 2013

Revert "Additional MSVC warning missed in the last commit."

This reverts commit 715b37f6d65b855c2ac2677ecafef6f9f7290de1.

--- a/src/opus_compare.c
+++ b/src/opus_compare.c
@@ -364,7 +364,7 @@
     err+=Ef*Ef;
   }
   err=pow(err/nframes,1.0/16);
-  Q=100*(1-0.5f*(float)log(1+err)/(float)log(1.13f));
+  Q=100*(1-0.5f*(float)log(1+err)/log(1.13f));
   if(Q<0){
     fprintf(stderr,"Test vector FAILS\n");
     fprintf(stderr,"Internal weighted error is %f\n",err);