Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
external
ffmpeg
Commits
d19499c7
Commit
d19499c7
authored
Jul 08, 2012
by
Anton Khirnov
Browse files
vf_gradfun: don't store two pointers to one AVFilterBufferRef.
parent
0fe010a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
libavfilter/vf_gradfun.c
libavfilter/vf_gradfun.c
+2
-3
No files found.
libavfilter/vf_gradfun.c
View file @
d19499c7
...
...
@@ -191,7 +191,7 @@ static void start_frame(AVFilterLink *inlink, AVFilterBufferRef *inpicref)
outpicref
->
video
->
w
=
outlink
->
w
;
outpicref
->
video
->
h
=
outlink
->
h
;
}
else
outpicref
=
inpicref
;
outpicref
=
avfilter_ref_buffer
(
inpicref
,
~
0
)
;
outlink
->
out_buf
=
outpicref
;
ff_start_frame
(
outlink
,
avfilter_ref_buffer
(
outpicref
,
~
0
));
...
...
@@ -226,8 +226,7 @@ static void end_frame(AVFilterLink *inlink)
ff_draw_slice
(
outlink
,
0
,
inlink
->
h
,
1
);
ff_end_frame
(
outlink
);
avfilter_unref_buffer
(
inpic
);
if
(
outpic
!=
inpic
)
avfilter_unref_buffer
(
outpic
);
avfilter_unref_buffer
(
outpic
);
}
AVFilter
avfilter_vf_gradfun
=
{
...
...
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