Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
62765c00
Commit
62765c00
authored
Dec 23, 2015
by
Ganesh Ajjanagadde
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc/wmadec: replace pow(10,x) by ff_exp10(x)
Signed-off-by:
Ganesh Ajjanagadde
<
gajjanagadde@gmail.com
>
parent
a0ea801d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
wmadec.c
libavcodec/wmadec.c
+3
-2
No files found.
libavcodec/wmadec.c
View file @
62765c00
...
...
@@ -34,6 +34,7 @@
*/
#include "libavutil/attributes.h"
#include "libavutil/internal.h"
#include "avcodec.h"
#include "internal.h"
...
...
@@ -626,7 +627,7 @@ static int wma_decode_block(WMACodecContext *s)
coefs1
=
s
->
coefs1
[
ch
];
exponents
=
s
->
exponents
[
ch
];
esize
=
s
->
exponents_bsize
[
ch
];
mult
=
pow
(
10
,
total_gain
*
0
.
05
)
/
s
->
max_exponent
[
ch
];
mult
=
ff_exp10
(
total_gain
*
0
.
05
)
/
s
->
max_exponent
[
ch
];
mult
*=
mdct_norm
;
coefs
=
s
->
coefs
[
ch
];
if
(
s
->
use_noise_coding
)
{
...
...
@@ -674,7 +675,7 @@ static int wma_decode_block(WMACodecContext *s)
/* use noise with specified power */
mult1
=
sqrt
(
exp_power
[
j
]
/
exp_power
[
last_high_band
]);
/* XXX: use a table */
mult1
=
mult1
*
pow
(
10
,
s
->
high_band_values
[
ch
][
j
]
*
0
.
05
);
mult1
=
mult1
*
ff_exp10
(
s
->
high_band_values
[
ch
][
j
]
*
0
.
05
);
mult1
=
mult1
/
(
s
->
max_exponent
[
ch
]
*
s
->
noise_mult
);
mult1
*=
mdct_norm
;
for
(
i
=
0
;
i
<
n
;
i
++
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment