summaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2009-11-24 10:10:39 +0000
committerMåns Rullgård <mans@mansr.com>2009-11-24 10:10:39 +0000
commit8b4a6d47b28d5995613f5fae6142e8dbd85866d5 (patch)
tree9c37ab4e7902ab01464d1feef35aecc9172adf78 /libavcodec
parentfedbfd5d444288954eca602391c97d4bfc53a5ea (diff)
downloadffmpeg-streaming-8b4a6d47b28d5995613f5fae6142e8dbd85866d5.zip
ffmpeg-streaming-8b4a6d47b28d5995613f5fae6142e8dbd85866d5.tar.gz
WMA: extend exponent range to 95
Hopefully this will be enough. Fixes issue 1565 (again). Originally committed as revision 20598 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/wmadec.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/libavcodec/wmadec.c b/libavcodec/wmadec.c
index baaf930..3583d4a 100644
--- a/libavcodec/wmadec.c
+++ b/libavcodec/wmadec.c
@@ -240,7 +240,7 @@ static void decode_exp_lsp(WMACodecContext *s, int ch)
s->block_len, lsp_coefs);
}
-/** pow(10, i / 16.0) for i in -60..75 */
+/** pow(10, i / 16.0) for i in -60..95 */
static const float pow_tab[] = {
1.7782794100389e-04, 2.0535250264571e-04,
2.3713737056617e-04, 2.7384196342644e-04,
@@ -310,6 +310,16 @@ static const float pow_tab[] = {
2.3713737056617e+04, 2.7384196342644e+04,
3.1622776601684e+04, 3.6517412725484e+04,
4.2169650342858e+04, 4.8696752516586e+04,
+ 5.6234132519035e+04, 6.4938163157621e+04,
+ 7.4989420933246e+04, 8.6596432336007e+04,
+ 1.0000000000000e+05, 1.1547819846895e+05,
+ 1.3335214321633e+05, 1.5399265260595e+05,
+ 1.7782794100389e+05, 2.0535250264571e+05,
+ 2.3713737056617e+05, 2.7384196342644e+05,
+ 3.1622776601684e+05, 3.6517412725484e+05,
+ 4.2169650342858e+05, 4.8696752516586e+05,
+ 5.6234132519035e+05, 6.4938163157621e+05,
+ 7.4989420933246e+05, 8.6596432336007e+05,
};
/**
OpenPOWER on IntegriCloud