[FFmpeg-cvslog] avcodec/dcadec: dont use hex float, msvc doesnt support it
Michael Niedermayer
git at videolan.org
Fri May 23 22:45:01 CEST 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri May 23 22:33:55 2014 +0200| [6b88f22e895314164eef00ccbdbf11ad97a7c56f] | committer: Michael Niedermayer
avcodec/dcadec: dont use hex float, msvc doesnt support it
Found-by: nevcairiel
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6b88f22e895314164eef00ccbdbf11ad97a7c56f
---
libavcodec/dcadec.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavcodec/dcadec.c b/libavcodec/dcadec.c
index c072044..bfbf51a 100644
--- a/libavcodec/dcadec.c
+++ b/libavcodec/dcadec.c
@@ -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;
}
/**
More information about the ffmpeg-cvslog
mailing list