avcodec/dcadec: dont use hex float, msvc doesnt support it
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 23 May 2014 20:33:55 +0000 (22:33 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 23 May 2014 20:39:14 +0000 (22:39 +0200)
Found-by: nevcairiel
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/dcadec.c

index c072044..bfbf51a 100644 (file)
@@ -2107,7 +2107,8 @@ static float dca_dmix_code(unsigned code)
 {
     int sign = (code >> 8) - 1;
     code &= 0xff;
-    return ((dca_dmixtable[code] ^ sign) - sign) * 0x1p-15;
+#define POW2_MINUS15 .000030517578125
+    return ((dca_dmixtable[code] ^ sign) - sign) * POW2_MINUS15;
 }
 
 /**