Removes a float var that shouldn't have been there
authorJean-Marc Valin <jmvalin@jmvalin.ca>
Tue, 29 Oct 2013 01:50:10 +0000 (21:50 -0400)
committerJean-Marc Valin <jmvalin@jmvalin.ca>
Tue, 29 Oct 2013 01:50:10 +0000 (21:50 -0400)
Defining FIXED_POINT and DISABLE_FLOAT_API now leaves no float instruction

celt/celt_encoder.c

index 612fc21..836151d 100644 (file)
@@ -1613,7 +1613,7 @@ int celt_encode_with_ec(CELTEncoder * OPUS_RESTRICT st, const opus_val16 * pcm,
    if (!st->lfe)
    {
       opus_val16 follow=-QCONST16(10.0f,DB_SHIFT);
-      float frame_avg=0;
+      opus_val32 frame_avg=0;
       opus_val16 offset = shortBlocks?HALF16(SHL16(LM, DB_SHIFT)):0;
       for(i=st->start;i<st->end;i++)
       {