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
5495c7f2
Commit
5495c7f2
authored
Dec 23, 2015
by
Ganesh Ajjanagadde
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc/on2avc: replace pow(10,x) by ff_exp10(x)
Signed-off-by:
Ganesh Ajjanagadde
<
gajjanagadde@gmail.com
>
parent
26ac80d2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
on2avc.c
libavcodec/on2avc.c
+3
-2
No files found.
libavcodec/on2avc.c
View file @
5495c7f2
...
...
@@ -22,6 +22,7 @@
#include "libavutil/channel_layout.h"
#include "libavutil/float_dsp.h"
#include "libavutil/internal.h"
#include "avcodec.h"
#include "bytestream.h"
#include "fft.h"
...
...
@@ -934,9 +935,9 @@ static av_cold int on2avc_decode_init(AVCodecContext *avctx)
"Stereo mode support is not good, patch is welcome
\n
"
);
for
(
i
=
0
;
i
<
20
;
i
++
)
c
->
scale_tab
[
i
]
=
ceil
(
pow
(
10
.
0
,
i
*
0
.
1
)
*
16
)
/
32
;
c
->
scale_tab
[
i
]
=
ceil
(
ff_exp10
(
i
*
0
.
1
)
*
16
)
/
32
;
for
(;
i
<
128
;
i
++
)
c
->
scale_tab
[
i
]
=
ceil
(
pow
(
10
.
0
,
i
*
0
.
1
)
*
0
.
5
);
c
->
scale_tab
[
i
]
=
ceil
(
ff_exp10
(
i
*
0
.
1
)
*
0
.
5
);
if
(
avctx
->
sample_rate
<
32000
||
avctx
->
channels
==
1
)
memcpy
(
c
->
long_win
,
ff_on2avc_window_long_24000
,
...
...
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