shithub: opus

Download patch

ref: 59b907cbf66ac0ed9fbb7edc6f152967cd65ab89
parent: 3609a2218e05abc96bb9b5edd875ec16a92ba699
author: Jean-Marc Valin <jmvalin@jmvalin.ca>
date: Wed May 24 10:21:08 EDT 2017

Fixes a double->float conversion warning

--- a/celt/celt_encoder.c
+++ b/celt/celt_encoder.c
@@ -794,7 +794,7 @@
       trim = QCONST16(4.f, 8);
    } else if (equiv_rate < 80000) {
       opus_int32 frac = (equiv_rate-64000) >> 10;
-      trim = QCONST16(4.f, 8) + QCONST16(1.f/16., 8)*frac;
+      trim = QCONST16(4.f, 8) + QCONST16(1.f/16.f, 8)*frac;
    }
    if (C==2)
    {