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
32e1af77
Commit
32e1af77
authored
Sep 17, 2015
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/dcaenc: fix lfe fir coefficients
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
58fe57d5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
dcaenc.c
libavcodec/dcaenc.c
+5
-4
No files found.
libavcodec/dcaenc.c
View file @
32e1af77
...
@@ -174,10 +174,11 @@ static int encode_init(AVCodecContext *avctx)
...
@@ -174,10 +174,11 @@ static int encode_init(AVCodecContext *avctx)
cb_to_level
[
i
]
=
(
int32_t
)(
0x7fffffff
*
pow
(
10
,
-
0
.
005
*
i
));
cb_to_level
[
i
]
=
(
int32_t
)(
0x7fffffff
*
pow
(
10
,
-
0
.
005
*
i
));
}
}
/* FIXME: probably incorrect */
for
(
k
=
0
;
k
<
32
;
k
++
)
{
for
(
i
=
0
;
i
<
256
;
i
++
)
{
for
(
j
=
0
;
j
<
8
;
j
++
)
{
lfe_fir_64i
[
i
]
=
(
int32_t
)(
0x01ffffff
*
ff_dca_lfe_fir_64
[
i
]);
lfe_fir_64i
[
64
*
j
+
k
]
=
(
int32_t
)(
0xffffff800000ULL
*
ff_dca_lfe_fir_64
[
8
*
k
+
j
]);
lfe_fir_64i
[
511
-
i
]
=
(
int32_t
)(
0x01ffffff
*
ff_dca_lfe_fir_64
[
i
]);
lfe_fir_64i
[
64
*
(
7
-
j
)
+
(
63
-
k
)]
=
(
int32_t
)(
0xffffff800000ULL
*
ff_dca_lfe_fir_64
[
8
*
k
+
j
]);
}
}
}
for
(
i
=
0
;
i
<
512
;
i
++
)
{
for
(
i
=
0
;
i
<
512
;
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