[FFmpeg-cvslog] dcadec: replace ldexpf with a multiplication by a	constant
    Niels Möller 
    git at videolan.org
       
    Wed Jun 18 13:47:52 CEST 2014
    
    
  
ffmpeg | branch: master | Niels Möller <nisse at lysator.liu.se> | Wed Jun 18 08:23:15 2014 +0200| [f2ce63246f5c934429f9cb857a794e07624d7912] | committer: Anton Khirnov
dcadec: replace ldexpf with a multiplication by a constant
Signed-off-by: Anton Khirnov <anton at khirnov.net>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f2ce63246f5c934429f9cb857a794e07624d7912
---
 libavcodec/dcadec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/dcadec.c b/libavcodec/dcadec.c
index 0727857..e988e94 100644
--- a/libavcodec/dcadec.c
+++ b/libavcodec/dcadec.c
@@ -1699,7 +1699,7 @@ static float dca_dmix_code(unsigned code)
 {
     int sign = (code >> 8) - 1;
     code &= 0xff;
-    return ldexpf((dca_dmixtable[code] ^ sign) - sign, -15);
+    return ((dca_dmixtable[code] ^ sign) - sign) * (1.0 / (1U << 15));
 }
 
 /**
    
    
More information about the ffmpeg-cvslog
mailing list