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
6323ca59
Commit
6323ca59
authored
Oct 30, 2023
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_feedback: add timeline support
parent
2f268505
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
vf_feedback.c
libavfilter/vf_feedback.c
+8
-3
No files found.
libavfilter/vf_feedback.c
View file @
6323ca59
...
...
@@ -185,13 +185,16 @@ static int activate(AVFilterContext *ctx)
return
ret
;
}
if
(
!
s
->
feed
)
{
if
(
!
s
->
feed
||
ctx
->
is_disabled
)
{
AVFrame
*
in
=
NULL
;
ret
=
ff_inlink_consume_frame
(
ctx
->
inputs
[
0
],
&
in
);
if
(
ret
<
0
)
return
ret
;
if
(
ret
>
0
&&
ctx
->
is_disabled
)
return
ff_filter_frame
(
ctx
->
outputs
[
0
],
in
);
if
(
ret
>
0
)
{
AVFrame
*
frame
;
...
...
@@ -239,10 +242,11 @@ static int activate(AVFilterContext *ctx)
return
0
;
}
if
(
!
s
->
feed
)
{
if
(
!
s
->
feed
||
ctx
->
is_disabled
)
{
if
(
ff_outlink_frame_wanted
(
ctx
->
outputs
[
0
]))
{
ff_inlink_request_frame
(
ctx
->
inputs
[
0
]);
ff_inlink_request_frame
(
ctx
->
inputs
[
1
]);
if
(
!
ctx
->
is_disabled
)
ff_inlink_request_frame
(
ctx
->
inputs
[
1
]);
return
0
;
}
}
...
...
@@ -330,5 +334,6 @@ const AVFilter ff_vf_feedback = {
FILTER_INPUTS
(
inputs
),
FILTER_OUTPUTS
(
outputs
),
FILTER_QUERY_FUNC
(
query_formats
),
.
flags
=
AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL
,
.
process_command
=
ff_filter_process_command
,
};
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