Whoa! This fixes a pretty bad fixed-point stereo regression
authorJean-Marc Valin <jmvalin@jmvalin.ca>
Fri, 29 Nov 2013 21:47:52 +0000 (16:47 -0500)
committerJean-Marc Valin <jmvalin@jmvalin.ca>
Fri, 29 Nov 2013 21:47:52 +0000 (16:47 -0500)
celt/celt_encoder.c

index 91c1212..1ceb75e 100644 (file)
@@ -1816,7 +1816,7 @@ int celt_encode_with_ec(CELTEncoder * OPUS_RESTRICT st, const opus_val16 * pcm,
       if (LM!=0)
          dual_stereo = stereo_analysis(mode, X, LM, N);
 
-      st->intensity = hysteresis_decision((opus_val16)equiv_rate/1000,
+      st->intensity = hysteresis_decision((opus_val16)(equiv_rate/1000),
             intensity_thresholds, intensity_histeresis, 21, st->intensity);
       st->intensity = IMIN(st->end,IMAX(st->start, st->intensity));
    }