comparison wmadec.c @ 10564:559ba9eabaff libavcodec

WMA: extend exponent range to 95 Hopefully this will be enough. Fixes issue 1565 (again).
author mru
date Tue, 24 Nov 2009 10:10:39 +0000
parents d0e17b0a6845
children 50c21a46538f
comparison
equal deleted inserted replaced
10563:93f1f9d9d847 10564:559ba9eabaff
238 238
239 wma_lsp_to_curve(s, s->exponents[ch], &s->max_exponent[ch], 239 wma_lsp_to_curve(s, s->exponents[ch], &s->max_exponent[ch],
240 s->block_len, lsp_coefs); 240 s->block_len, lsp_coefs);
241 } 241 }
242 242
243 /** pow(10, i / 16.0) for i in -60..75 */ 243 /** pow(10, i / 16.0) for i in -60..95 */
244 static const float pow_tab[] = { 244 static const float pow_tab[] = {
245 1.7782794100389e-04, 2.0535250264571e-04, 245 1.7782794100389e-04, 2.0535250264571e-04,
246 2.3713737056617e-04, 2.7384196342644e-04, 246 2.3713737056617e-04, 2.7384196342644e-04,
247 3.1622776601684e-04, 3.6517412725484e-04, 247 3.1622776601684e-04, 3.6517412725484e-04,
248 4.2169650342858e-04, 4.8696752516586e-04, 248 4.2169650342858e-04, 4.8696752516586e-04,
308 1.3335214321633e+04, 1.5399265260595e+04, 308 1.3335214321633e+04, 1.5399265260595e+04,
309 1.7782794100389e+04, 2.0535250264571e+04, 309 1.7782794100389e+04, 2.0535250264571e+04,
310 2.3713737056617e+04, 2.7384196342644e+04, 310 2.3713737056617e+04, 2.7384196342644e+04,
311 3.1622776601684e+04, 3.6517412725484e+04, 311 3.1622776601684e+04, 3.6517412725484e+04,
312 4.2169650342858e+04, 4.8696752516586e+04, 312 4.2169650342858e+04, 4.8696752516586e+04,
313 5.6234132519035e+04, 6.4938163157621e+04,
314 7.4989420933246e+04, 8.6596432336007e+04,
315 1.0000000000000e+05, 1.1547819846895e+05,
316 1.3335214321633e+05, 1.5399265260595e+05,
317 1.7782794100389e+05, 2.0535250264571e+05,
318 2.3713737056617e+05, 2.7384196342644e+05,
319 3.1622776601684e+05, 3.6517412725484e+05,
320 4.2169650342858e+05, 4.8696752516586e+05,
321 5.6234132519035e+05, 6.4938163157621e+05,
322 7.4989420933246e+05, 8.6596432336007e+05,
313 }; 323 };
314 324
315 /** 325 /**
316 * decode exponents coded with VLC codes 326 * decode exponents coded with VLC codes
317 */ 327 */