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
91be2ad7
Commit
91be2ad7
authored
Sep 04, 2016
by
Burt P
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
af_hdcd: fix possible integer overflow
Signed-off-by:
Burt P
<
pburt0@gmail.com
>
parent
5e553cab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
af_hdcd.c
libavfilter/af_hdcd.c
+4
-5
No files found.
libavfilter/af_hdcd.c
View file @
91be2ad7
...
...
@@ -1004,16 +1004,15 @@ AVFILTER_DEFINE_CLASS(hdcd);
static
void
hdcd_reset
(
hdcd_state
*
state
,
unsigned
rate
,
unsigned
cdt_ms
)
{
int
i
;
uint64_t
sustain_reset
=
(
uint64_t
)
cdt_ms
*
rate
/
1000
;
state
->
window
=
0
;
state
->
readahead
=
32
;
state
->
arg
=
0
;
state
->
control
=
0
;
state
->
running_gain
=
0
;
state
->
sustain_reset
=
sustain_reset
;
state
->
sustain
=
0
;
state
->
sustain_reset
=
cdt_ms
*
rate
/
1000
;
state
->
code_counterA
=
0
;
state
->
code_counterA_almost
=
0
;
...
...
@@ -1789,8 +1788,8 @@ static av_cold int init(AVFilterContext *ctx)
hdcd_reset
(
&
s
->
state
[
c
],
44100
,
s
->
cdt_ms
);
}
av_log
(
ctx
,
AV_LOG_VERBOSE
,
"CDT period: %dms (%
d
samples @44100Hz)
\n
"
,
s
->
cdt_ms
,
s
->
cdt_ms
*
44100
/
1000
);
av_log
(
ctx
,
AV_LOG_VERBOSE
,
"CDT period: %dms (%
u
samples @44100Hz)
\n
"
,
s
->
cdt_ms
,
s
->
state
[
0
].
sustain_reset
);
av_log
(
ctx
,
AV_LOG_VERBOSE
,
"Process mode: %s
\n
"
,
(
s
->
process_stereo
)
?
"process stereo channels together"
:
"process each channel separately"
);
av_log
(
ctx
,
AV_LOG_VERBOSE
,
"Force PE: %s
\n
"
,
...
...
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