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
add7b114
Commit
add7b114
authored
Nov 04, 2011
by
Justin Ruggles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
binkaudio: expand quant_table to accommodate all possible values
parent
c38404ee
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
binkaudio.c
libavcodec/binkaudio.c
+2
-2
No files found.
libavcodec/binkaudio.c
View file @
add7b114
...
...
@@ -39,7 +39,7 @@
extern
const
uint16_t
ff_wma_critical_freqs
[
25
];
static
float
quant_table
[
9
5
];
static
float
quant_table
[
9
6
];
#define MAX_CHANNELS 2
#define BINK_BLOCK_MAX_SIZE (MAX_CHANNELS << 11)
...
...
@@ -112,7 +112,7 @@ static av_cold int decode_init(AVCodecContext *avctx)
s
->
block_size
=
(
s
->
frame_len
-
s
->
overlap_len
)
*
s
->
channels
;
sample_rate_half
=
(
sample_rate
+
1
)
/
2
;
s
->
root
=
2
.
0
/
sqrt
(
s
->
frame_len
);
for
(
i
=
0
;
i
<
9
5
;
i
++
)
{
for
(
i
=
0
;
i
<
9
6
;
i
++
)
{
/* constant is result of 0.066399999/log10(M_E) */
quant_table
[
i
]
=
expf
(
i
*
0
.
15289164787221953823
f
)
*
s
->
root
;
}
...
...
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