shithub: opus

Download patch

ref: b0a73a0b1e6c195ade8624dcd76f731a3dfc6f10
parent: 5a3d49eb11d4430694e41b7fa59a30627cd19d8a
author: Gregory Maxwell <[email protected]>
date: Fri Dec 12 11:54:25 EST 2008

Fix optional synthesis bug in fixed point mode.

--- a/libcelt/celt.c
+++ b/libcelt/celt.c
@@ -701,8 +701,7 @@
 
    if (optional_synthesis != NULL) {
      ret=celt_encode(st,in,in,compressed,nbCompressedBytes);
-   /*Converts backwards for inplace operation*/
-      for (j=0;j=C*N;j++)
+      for (j=0;j<C*N;j++)
          optional_synthesis[j]=in[j]*(1/32768.);
    } else {
      ret=celt_encode(st,in,NULL,compressed,nbCompressedBytes);