shithub: opus

Download patch

ref: 58107d896811f0e975bc1f8f75a5c1c2f6e746b0
parent: c543ec1bd3d8e42a32132b139d606e2d3e67fb28
author: Mark Harris <[email protected]>
date: Sat Jan 25 11:32:18 EST 2014

Fix surround encoding

Broken by 306d7f5a308e30ce10ba1a1dcdbeeb81de3b2872

--- a/src/opus_multistream_encoder.c
+++ b/src/opus_multistream_encoder.c
@@ -267,7 +267,7 @@
             freq[i] = 0;
       }
 
-      compute_band_energies(celt_mode, freq, bandE, 21, 1, 1<<LM);
+      compute_band_energies(celt_mode, freq, bandE, 21, 1, LM);
       amp2Log2(celt_mode, 21, 21, bandE, bandLogE+21*c, 1);
       /* Apply spreading function with -6 dB/band going up and -12 dB/band going down. */
       for (i=1;i<21;i++)