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
a0191492
Commit
a0191492
authored
Sep 29, 2015
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_atadenoise: do not use uninitialized data
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
308e7484
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
vf_atadenoise.c
libavfilter/vf_atadenoise.c
+9
-8
No files found.
libavfilter/vf_atadenoise.c
View file @
a0191492
...
@@ -295,13 +295,14 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *buf)
...
@@ -295,13 +295,14 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *buf)
if
(
s
->
q
.
available
!=
s
->
size
)
{
if
(
s
->
q
.
available
!=
s
->
size
)
{
if
(
s
->
q
.
available
<
s
->
mid
)
{
if
(
s
->
q
.
available
<
s
->
mid
)
{
out
=
ff_get_video_buffer
(
outlink
,
outlink
->
w
,
outlink
->
h
);
for
(
i
=
0
;
i
<
s
->
mid
;
i
++
)
{
if
(
!
out
)
out
=
av_frame_clone
(
buf
);
return
AVERROR
(
ENOMEM
);
if
(
!
out
)
{
av_frame_free
(
&
buf
);
for
(
i
=
0
;
i
<
s
->
mid
;
i
++
)
return
AVERROR
(
ENOMEM
);
ff_bufqueue_add
(
ctx
,
&
s
->
q
,
av_frame_clone
(
out
));
}
av_frame_free
(
&
out
);
ff_bufqueue_add
(
ctx
,
&
s
->
q
,
out
);
}
}
}
if
(
s
->
q
.
available
<
s
->
size
)
{
if
(
s
->
q
.
available
<
s
->
size
)
{
ff_bufqueue_add
(
ctx
,
&
s
->
q
,
buf
);
ff_bufqueue_add
(
ctx
,
&
s
->
q
,
buf
);
...
@@ -362,7 +363,7 @@ static int request_frame(AVFilterLink *outlink)
...
@@ -362,7 +363,7 @@ static int request_frame(AVFilterLink *outlink)
ret
=
ff_request_frame
(
ctx
->
inputs
[
0
]);
ret
=
ff_request_frame
(
ctx
->
inputs
[
0
]);
if
(
ret
==
AVERROR_EOF
&&
!
ctx
->
is_disabled
&&
s
->
available
)
{
if
(
ret
==
AVERROR_EOF
&&
!
ctx
->
is_disabled
&&
s
->
available
)
{
AVFrame
*
buf
=
ff_get_video_buffer
(
outlink
,
outlink
->
w
,
outlink
->
h
);
AVFrame
*
buf
=
av_frame_clone
(
ff_bufqueue_peek
(
&
s
->
q
,
s
->
available
)
);
if
(
!
buf
)
if
(
!
buf
)
return
AVERROR
(
ENOMEM
);
return
AVERROR
(
ENOMEM
);
...
...
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