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
30579b7e
Commit
30579b7e
authored
Apr 26, 2013
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dcaenc: silence address sanitizer warning
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
6a8d0506
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
dcaenc.c
libavcodec/dcaenc.c
+6
-1
No files found.
libavcodec/dcaenc.c
View file @
30579b7e
...
@@ -168,8 +168,13 @@ static int encode_init(AVCodecContext *avctx)
...
@@ -168,8 +168,13 @@ 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
(
i
=
0
;
i
<
256
;
i
++
)
{
lfe_fir_64i
[
i
]
=
(
int32_t
)(
0x01ffffff
*
lfe_fir_64
[
i
]);
lfe_fir_64i
[
511
-
i
]
=
(
int32_t
)(
0x01ffffff
*
lfe_fir_64
[
i
]);
}
for
(
i
=
0
;
i
<
512
;
i
++
)
{
for
(
i
=
0
;
i
<
512
;
i
++
)
{
lfe_fir_64i
[
i
]
=
(
int32_t
)(
0x01ffffff
*
lfe_fir_64
[
i
]);
band_interpolation
[
0
][
i
]
=
(
int32_t
)(
0x1000000000ULL
*
fir_32bands_perfect
[
i
]);
band_interpolation
[
0
][
i
]
=
(
int32_t
)(
0x1000000000ULL
*
fir_32bands_perfect
[
i
]);
band_interpolation
[
1
][
i
]
=
(
int32_t
)(
0x1000000000ULL
*
fir_32bands_nonperfect
[
i
]);
band_interpolation
[
1
][
i
]
=
(
int32_t
)(
0x1000000000ULL
*
fir_32bands_nonperfect
[
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