Tuning higher bit-rate to behave a bit more like Vorbis.
[opus.git] / libcelt / plc.c
index 5625c67..b93fd6a 100644 (file)
@@ -83,7 +83,7 @@ int          p
          if (error<SHR32(ac[0],10))
             break;
 #else
-         if (error<.001*ac[0])
+         if (error<.001f*ac[0])
             break;
 #endif
       }
@@ -172,7 +172,7 @@ void _celt_autocorr(
          ac0 += SHR32(MULT16_16(xx[i],xx[i]),8);
       ac0 += 1+n;
 
-      shift = celt_ilog2(ac0)-30+8;
+      shift = celt_ilog2(ac0)-30+9;
       shift = (shift+1)/2;
       for(i=0;i<n;i++)
          xx[i] = VSHR32(xx[i], shift);