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
c5f0b6bf
Commit
c5f0b6bf
authored
Sep 10, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
atrac3: replace powf(2,...) by exp2f()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
14de5578
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
atrac3.c
libavcodec/atrac3.c
+3
-2
No files found.
libavcodec/atrac3.c
View file @
c5f0b6bf
...
...
@@ -37,6 +37,7 @@
#include <stdio.h>
#include "libavutil/float_dsp.h"
#include "libavutil/libm.h"
#include "avcodec.h"
#include "get_bits.h"
#include "bytestream.h"
...
...
@@ -1020,10 +1021,10 @@ static av_cold int atrac3_decode_init(AVCodecContext *avctx)
/* Generate gain tables. */
for
(
i
=
0
;
i
<
16
;
i
++
)
gain_tab1
[
i
]
=
powf
(
2
.
0
,
(
4
-
i
)
);
gain_tab1
[
i
]
=
exp2f
(
4
-
i
);
for
(
i
=-
15
;
i
<
16
;
i
++
)
gain_tab2
[
i
+
15
]
=
powf
(
2
.
0
,
i
*
-
0
.
125
);
gain_tab2
[
i
+
15
]
=
exp2f
(
i
*
-
0
.
125
);
/* init the joint-stereo decoding data */
q
->
weighting_delay
[
0
]
=
0
;
...
...
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