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
8f63c4e7
Commit
8f63c4e7
authored
Oct 17, 2019
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_dedot: fix crash
Fixes #8299
parent
ce40188b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
vf_dedot.c
libavfilter/vf_dedot.c
+6
-2
No files found.
libavfilter/vf_dedot.c
View file @
8f63c4e7
...
...
@@ -283,7 +283,7 @@ static int activate(AVFilterContext *ctx)
s
->
frames
[
i
]
=
av_frame_clone
(
frame
);
}
av_frame_free
(
&
frame
);
}
else
{
}
else
if
(
s
->
frames
[
3
])
{
s
->
eof_frames
--
;
s
->
frames
[
4
]
=
av_frame_clone
(
s
->
frames
[
3
]);
}
...
...
@@ -343,7 +343,11 @@ static int activate(AVFilterContext *ctx)
if
(
!
s
->
eof
&&
ff_inlink_acknowledge_status
(
inlink
,
&
status
,
&
pts
))
{
if
(
status
==
AVERROR_EOF
)
{
s
->
eof
=
1
;
s
->
eof_frames
=
2
;
s
->
eof_frames
=
!!
s
->
frames
[
0
]
+
!!
s
->
frames
[
1
];
if
(
s
->
eof_frames
<=
0
)
{
ff_outlink_set_status
(
outlink
,
AVERROR_EOF
,
pts
);
return
0
;
}
ff_filter_set_ready
(
ctx
,
10
);
return
0
;
}
...
...
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