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
9203fa0b
Commit
9203fa0b
authored
Jul 08, 2012
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vf_fieldorder: don't give up its own reference to the output buffer.
parent
f493c644
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
vf_fieldorder.c
libavfilter/vf_fieldorder.c
+4
-2
No files found.
libavfilter/vf_fieldorder.c
View file @
9203fa0b
...
...
@@ -121,12 +121,13 @@ static void start_frame(AVFilterLink *inlink, AVFilterBufferRef *inpicref)
AVFilterContext
*
ctx
=
inlink
->
dst
;
AVFilterLink
*
outlink
=
ctx
->
outputs
[
0
];
AVFilterBufferRef
*
outpicref
;
AVFilterBufferRef
*
outpicref
,
*
for_next_filter
;
outpicref
=
avfilter_ref_buffer
(
inpicref
,
~
0
);
outlink
->
out_buf
=
outpicref
;
ff_start_frame
(
outlink
,
outpicref
);
for_next_filter
=
avfilter_ref_buffer
(
outpicref
,
~
0
);
ff_start_frame
(
outlink
,
for_next_filter
);
}
static
void
draw_slice
(
AVFilterLink
*
inlink
,
int
y
,
int
h
,
int
slice_dir
)
...
...
@@ -213,6 +214,7 @@ static void end_frame(AVFilterLink *inlink)
ff_end_frame
(
outlink
);
avfilter_unref_buffer
(
inpicref
);
avfilter_unref_bufferp
(
&
outlink
->
out_buf
);
}
AVFilter
avfilter_vf_fieldorder
=
{
...
...
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