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
25cd1845
Commit
25cd1845
authored
Apr 12, 2022
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/af_asetnsamples: fix excessive frames queueing at start
parent
b64043a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
af_asetnsamples.c
libavfilter/af_asetnsamples.c
+6
-6
No files found.
libavfilter/af_asetnsamples.c
View file @
25cd1845
...
...
@@ -66,12 +66,8 @@ static int activate(AVFilterContext *ctx)
return
ret
;
if
(
ret
>
0
)
{
if
(
!
s
->
pad
||
frame
->
nb_samples
==
s
->
nb_out_samples
)
{
ret
=
ff_filter_frame
(
outlink
,
frame
);
if
(
ff_inlink_queued_samples
(
inlink
)
>=
s
->
nb_out_samples
)
ff_filter_set_ready
(
ctx
,
100
);
return
ret
;
}
if
(
!
s
->
pad
||
frame
->
nb_samples
==
s
->
nb_out_samples
)
return
ff_filter_frame
(
outlink
,
frame
);
pad_frame
=
ff_get_audio_buffer
(
outlink
,
s
->
nb_out_samples
);
if
(
!
pad_frame
)
{
...
...
@@ -96,6 +92,10 @@ static int activate(AVFilterContext *ctx)
}
FF_FILTER_FORWARD_STATUS
(
inlink
,
outlink
);
if
(
ff_inlink_queued_samples
(
inlink
)
>=
s
->
nb_out_samples
)
{
ff_filter_set_ready
(
ctx
,
100
);
return
0
;
}
FF_FILTER_FORWARD_WANTED
(
outlink
,
inlink
);
return
FFERROR_NOT_READY
;
...
...
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