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
db4a71c0
Commit
db4a71c0
authored
Dec 20, 2016
by
Nicolas George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi: use the consume helpers in ff_filter_frame_to_filter().
parent
d360ddf0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
10 deletions
+11
-10
avfilter.c
libavfilter/avfilter.c
+11
-10
No files found.
libavfilter/avfilter.c
View file @
db4a71c0
...
@@ -1253,24 +1253,25 @@ static int take_samples(AVFilterLink *link, unsigned min, unsigned max,
...
@@ -1253,24 +1253,25 @@ static int take_samples(AVFilterLink *link, unsigned min, unsigned max,
int
ff_filter_frame_to_filter
(
AVFilterLink
*
link
)
int
ff_filter_frame_to_filter
(
AVFilterLink
*
link
)
{
{
AVFrame
*
frame
;
AVFrame
*
frame
=
NULL
;
AVFilterContext
*
dst
=
link
->
dst
;
AVFilterContext
*
dst
=
link
->
dst
;
int
ret
;
int
ret
;
av_assert1
(
ff_framequeue_queued_frames
(
&
link
->
fifo
));
av_assert1
(
ff_framequeue_queued_frames
(
&
link
->
fifo
));
if
(
link
->
min_samples
)
{
ret
=
link
->
min_samples
?
int
min
=
link
->
min_samples
;
ff_inlink_consume_samples
(
link
,
link
->
min_samples
,
link
->
max_samples
,
&
frame
)
:
if
(
link
->
status_in
)
ff_inlink_consume_frame
(
link
,
&
frame
);
min
=
FFMIN
(
min
,
ff_framequeue_queued_samples
(
&
link
->
fifo
)
);
av_assert1
(
ret
);
ret
=
take_samples
(
link
,
min
,
link
->
max_samples
,
&
frame
);
if
(
ret
<
0
)
{
if
(
ret
<
0
)
av_assert1
(
!
frame
);
return
ret
;
return
ret
;
}
else
{
frame
=
ff_framequeue_take
(
&
link
->
fifo
);
}
}
/* The filter will soon have received a new frame, that may allow it to
/* The filter will soon have received a new frame, that may allow it to
produce one or more: unblock its outputs. */
produce one or more: unblock its outputs. */
filter_unblock
(
dst
);
filter_unblock
(
dst
);
/* AVFilterPad.filter_frame() expect frame_count_out to have the value
before the frame; ff_filter_frame_framed() will re-increment it. */
link
->
frame_count_out
--
;
ret
=
ff_filter_frame_framed
(
link
,
frame
);
ret
=
ff_filter_frame_framed
(
link
,
frame
);
if
(
ret
<
0
&&
ret
!=
link
->
status_out
)
{
if
(
ret
<
0
&&
ret
!=
link
->
status_out
)
{
ff_avfilter_link_set_out_status
(
link
,
ret
,
AV_NOPTS_VALUE
);
ff_avfilter_link_set_out_status
(
link
,
ret
,
AV_NOPTS_VALUE
);
...
...
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