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
782ea8b2
Commit
782ea8b2
authored
May 05, 2023
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/af_asetnsamples: add timeline support
parent
03800bca
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
af_asetnsamples.c
libavfilter/af_asetnsamples.c
+6
-2
No files found.
libavfilter/af_asetnsamples.c
View file @
782ea8b2
...
@@ -61,12 +61,15 @@ static int activate(AVFilterContext *ctx)
...
@@ -61,12 +61,15 @@ static int activate(AVFilterContext *ctx)
FF_FILTER_FORWARD_STATUS_BACK
(
outlink
,
inlink
);
FF_FILTER_FORWARD_STATUS_BACK
(
outlink
,
inlink
);
if
(
ctx
->
is_disabled
)
ret
=
ff_inlink_consume_frame
(
inlink
,
&
frame
);
else
ret
=
ff_inlink_consume_samples
(
inlink
,
s
->
nb_out_samples
,
s
->
nb_out_samples
,
&
frame
);
ret
=
ff_inlink_consume_samples
(
inlink
,
s
->
nb_out_samples
,
s
->
nb_out_samples
,
&
frame
);
if
(
ret
<
0
)
if
(
ret
<
0
)
return
ret
;
return
ret
;
if
(
ret
>
0
)
{
if
(
ret
>
0
)
{
if
(
!
s
->
pad
||
frame
->
nb_samples
==
s
->
nb_out_samples
)
if
(
!
s
->
pad
||
ctx
->
is_disabled
||
frame
->
nb_samples
==
s
->
nb_out_samples
)
return
ff_filter_frame
(
outlink
,
frame
);
return
ff_filter_frame
(
outlink
,
frame
);
pad_frame
=
ff_get_audio_buffer
(
outlink
,
s
->
nb_out_samples
);
pad_frame
=
ff_get_audio_buffer
(
outlink
,
s
->
nb_out_samples
);
...
@@ -123,5 +126,6 @@ const AVFilter ff_af_asetnsamples = {
...
@@ -123,5 +126,6 @@ const AVFilter ff_af_asetnsamples = {
FILTER_INPUTS
(
asetnsamples_inputs
),
FILTER_INPUTS
(
asetnsamples_inputs
),
FILTER_OUTPUTS
(
asetnsamples_outputs
),
FILTER_OUTPUTS
(
asetnsamples_outputs
),
.
activate
=
activate
,
.
activate
=
activate
,
.
flags
=
AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL
,
.
process_command
=
ff_filter_process_command
,
.
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