shithub: opus

Download patch

ref: 7013db7ca4678e4745a68460f5a7bd71902c8b23
parent: 6db9e6eff8c0ec2e60a847a70ec9de4e1f9c2b07
author: Jean-Marc Valin <[email protected]>
date: Tue Sep 29 19:45:03 EDT 2009

Fix stereo mismatch problem

--- a/libcelt/bands.c
+++ b/libcelt/bands.c
@@ -681,7 +681,7 @@
       }
 
       /* If pitch isn't available, use intra-frame prediction */
-      if (q1+q2==0)
+      if (q1==0)
       {
          intra_fold(m, X+C*eBands[i], eBands[i+1]-eBands[i], norm, P+C*eBands[i], eBands[i], B);
          deinterleave(P+C*eBands[i], C*N);
@@ -957,7 +957,7 @@
 
 
       /* If pitch isn't available, use intra-frame prediction */
-      if (q1+q2==0)
+      if (q1==0)
       {
          intra_fold(m, X+C*eBands[i], eBands[i+1]-eBands[i], norm, P+C*eBands[i], eBands[i], B);
          deinterleave(P+C*eBands[i], C*N);