ref: ab96457554e3fa70f96948059a800500c90ead4c
parent: eb17b5e00e2903e14f429988fcb5bc56ea0602db
author: Jean-Marc Valin <[email protected]>
date: Thu Oct 13 12:18:24 EDT 2011
JM puts on a brown paper bag
--- a/src/opus_encoder.c
+++ b/src/opus_encoder.c
@@ -906,11 +906,11 @@
g1 = st->hybrid_stereo_width_Q14;
g2 = (opus_val16)(st->silk_mode.stereoWidth_Q14);
#ifdef FIXED_POINT
- g1 *= (1./16384);
- g2 *= (1./16384);
-#else
g1 = g1==16384 ? Q15ONE : SHL16(g1,1);
g2 = g2==16384 ? Q15ONE : SHL16(g2,1);
+#else
+ g1 *= (1./16384);
+ g2 *= (1./16384);
#endif
stereo_fade(pcm_buf, pcm_buf, g1, g2, celt_mode->overlap,
frame_size, st->channels, celt_mode->window, st->Fs);