Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
ffmpeg
Commits
41096904
Commit
41096904
authored
Aug 08, 2017
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_separatefields: stop leaking last frame
This can happen when filtering is ended without receiving EOF.
parent
463b81de
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
vf_separatefields.c
libavfilter/vf_separatefields.c
+8
-0
No files found.
libavfilter/vf_separatefields.c
View file @
41096904
...
@@ -118,6 +118,13 @@ static int request_frame(AVFilterLink *outlink)
...
@@ -118,6 +118,13 @@ static int request_frame(AVFilterLink *outlink)
return
ret
;
return
ret
;
}
}
static
av_cold
void
uninit
(
AVFilterContext
*
ctx
)
{
SeparateFieldsContext
*
s
=
ctx
->
priv
;
av_frame_free
(
&
s
->
second
);
}
static
const
AVFilterPad
separatefields_inputs
[]
=
{
static
const
AVFilterPad
separatefields_inputs
[]
=
{
{
{
.
name
=
"default"
,
.
name
=
"default"
,
...
@@ -141,6 +148,7 @@ AVFilter ff_vf_separatefields = {
...
@@ -141,6 +148,7 @@ AVFilter ff_vf_separatefields = {
.
name
=
"separatefields"
,
.
name
=
"separatefields"
,
.
description
=
NULL_IF_CONFIG_SMALL
(
"Split input video frames into fields."
),
.
description
=
NULL_IF_CONFIG_SMALL
(
"Split input video frames into fields."
),
.
priv_size
=
sizeof
(
SeparateFieldsContext
),
.
priv_size
=
sizeof
(
SeparateFieldsContext
),
.
uninit
=
uninit
,
.
inputs
=
separatefields_inputs
,
.
inputs
=
separatefields_inputs
,
.
outputs
=
separatefields_outputs
,
.
outputs
=
separatefields_outputs
,
};
};
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