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
f493c644
Commit
f493c644
authored
Jul 08, 2012
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vf_pad: don't give up its own reference to the output buffer.
parent
ad8b6326
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
vf_pad.c
libavfilter/vf_pad.c
+4
-1
No files found.
libavfilter/vf_pad.c
View file @
f493c644
...
@@ -303,6 +303,7 @@ static void start_frame(AVFilterLink *inlink, AVFilterBufferRef *inpicref)
...
@@ -303,6 +303,7 @@ static void start_frame(AVFilterLink *inlink, AVFilterBufferRef *inpicref)
{
{
PadContext
*
pad
=
inlink
->
dst
->
priv
;
PadContext
*
pad
=
inlink
->
dst
->
priv
;
AVFilterBufferRef
*
outpicref
=
avfilter_ref_buffer
(
inpicref
,
~
0
);
AVFilterBufferRef
*
outpicref
=
avfilter_ref_buffer
(
inpicref
,
~
0
);
AVFilterBufferRef
*
for_next_filter
;
int
plane
;
int
plane
;
for
(
plane
=
0
;
plane
<
4
&&
outpicref
->
data
[
plane
];
plane
++
)
{
for
(
plane
=
0
;
plane
<
4
&&
outpicref
->
data
[
plane
];
plane
++
)
{
...
@@ -339,12 +340,14 @@ static void start_frame(AVFilterLink *inlink, AVFilterBufferRef *inpicref)
...
@@ -339,12 +340,14 @@ static void start_frame(AVFilterLink *inlink, AVFilterBufferRef *inpicref)
outpicref
->
video
->
w
=
pad
->
w
;
outpicref
->
video
->
w
=
pad
->
w
;
outpicref
->
video
->
h
=
pad
->
h
;
outpicref
->
video
->
h
=
pad
->
h
;
ff_start_frame
(
inlink
->
dst
->
outputs
[
0
],
outpicref
);
for_next_filter
=
avfilter_ref_buffer
(
outpicref
,
~
0
);
ff_start_frame
(
inlink
->
dst
->
outputs
[
0
],
for_next_filter
);
}
}
static
void
end_frame
(
AVFilterLink
*
link
)
static
void
end_frame
(
AVFilterLink
*
link
)
{
{
ff_end_frame
(
link
->
dst
->
outputs
[
0
]);
ff_end_frame
(
link
->
dst
->
outputs
[
0
]);
avfilter_unref_buffer
(
link
->
dst
->
outputs
[
0
]
->
out_buf
);
avfilter_unref_buffer
(
link
->
cur_buf
);
avfilter_unref_buffer
(
link
->
cur_buf
);
}
}
...
...
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