shithub: opus-tools

Download patch

ref: 8abc8e8cef40f832d7b3447be8b46052ce509756
parent: 65edaa18fdc5adedf197805bc73771585c077bb7
author: Gregory Maxwell <greg@xiph.org>
date: Tue Nov 22 19:28:52 EST 2011

Opusenc: code 16kHz as 16kHz, not 12kHz.

--- a/src/opusenc.c
+++ b/src/opusenc.c
@@ -491,7 +491,8 @@
 
   if(rate>24000)coding_rate=48000;
   else if(rate>16000)coding_rate=24000;
-  else if(rate>12000)coding_rate=12000;
+  else if(rate>12000)coding_rate=16000;
+  else if(rate>8000)coding_rate=12000;
   else coding_rate=8000;
 
   frame_size=frame_size/(48000/coding_rate);