shithub: opus-tools

Download patch

ref: 08a66f71fc95a01b8360fd9556bd8863db2c5492
parent: bc72ca7062291ae5013af0789f454c6a94a21c1e
author: Gregory Maxwell <[email protected]>
date: Fri Jul 13 11:02:02 EDT 2012

Add support for OPUS_SET_LSB_DEPTH.

--- a/src/opusenc.c
+++ b/src/opusenc.c
@@ -615,6 +615,14 @@
     exit(1);
   }
 
+#ifdef OPUS_SET_LSB_DEPTH
+  ret=opus_multistream_encoder_ctl(st, OPUS_SET_LSB_DEPTH(inopt.samplesize));
+  if(ret!=OPUS_OK){
+    fprintf(stderr,"OPUS_SET_LSB_DEPTH returned: %s\n",opus_strerror(ret));
+    exit(1);
+  }
+#endif
+
   /*This should be the last set of CTLs, except the lookahead get, so it can override the defaults.*/
   for(i=0;i<opt_ctls;i++){
     int target=opt_ctls_ctlval[i*3];