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
4b82b710
Commit
4b82b710
authored
Nov 03, 2018
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/af_amerge: use ff_inlink_queued_samples()
parent
decc0089
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
af_amerge.c
libavfilter/af_amerge.c
+3
-6
No files found.
libavfilter/af_amerge.c
View file @
4b82b710
...
...
@@ -23,9 +23,6 @@
* Audio merging filter
*/
#define FF_INTERNAL_FIELDS 1
#include "framequeue.h"
#include "libavutil/avstring.h"
#include "libavutil/bprint.h"
#include "libavutil/channel_layout.h"
...
...
@@ -285,9 +282,9 @@ static int activate(AVFilterContext *ctx)
FF_FILTER_FORWARD_STATUS_BACK_ALL
(
ctx
->
outputs
[
0
],
ctx
);
nb_samples
=
ff_
framequeue_queued_samples
(
&
ctx
->
inputs
[
0
]
->
fifo
);
nb_samples
=
ff_
inlink_queued_samples
(
ctx
->
inputs
[
0
]
);
for
(
i
=
1
;
i
<
ctx
->
nb_inputs
&&
nb_samples
>
0
;
i
++
)
{
nb_samples
=
FFMIN
(
ff_
framequeue_queued_samples
(
&
ctx
->
inputs
[
i
]
->
fifo
),
nb_samples
);
nb_samples
=
FFMIN
(
ff_
inlink_queued_samples
(
ctx
->
inputs
[
i
]
),
nb_samples
);
}
if
(
nb_samples
)
{
...
...
@@ -297,7 +294,7 @@ static int activate(AVFilterContext *ctx)
}
for
(
i
=
0
;
i
<
ctx
->
nb_inputs
;
i
++
)
{
if
(
ff_
framequeue_queued_samples
(
&
ctx
->
inputs
[
i
]
->
fifo
))
if
(
ff_
inlink_queued_samples
(
ctx
->
inputs
[
i
]
))
continue
;
if
(
ff_inlink_acknowledge_status
(
ctx
->
inputs
[
i
],
&
status
,
&
pts
))
{
...
...
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