From 8f466274d3bfc1e14503fef02be1a5ffc6ed6d64 Mon Sep 17 00:00:00 2001
From: Jean-Marc Valin <jmvalin@jmvalin.ca>
Date: Mon, 28 Oct 2013 21:50:10 -0400
Subject: [PATCH] Removes a float var that shouldn't have been there

Defining FIXED_POINT and DISABLE_FLOAT_API now leaves no float instruction
---
 celt/celt_encoder.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/celt/celt_encoder.c b/celt/celt_encoder.c
index 612fc2136..836151d1c 100644
--- a/celt/celt_encoder.c
+++ b/celt/celt_encoder.c
@@ -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++)
       {
-- 
GitLab