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
decc0089
Commit
decc0089
authored
Nov 03, 2018
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/af_amultiply: make use of ff_inlink_queued_samples()
parent
639694ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
af_amultiply.c
libavfilter/af_amultiply.c
+3
-6
No files found.
libavfilter/af_amultiply.c
View file @
decc0089
...
...
@@ -24,9 +24,6 @@
#include "libavutil/float_dsp.h"
#include "libavutil/opt.h"
#define FF_INTERNAL_FIELDS 1
#include "framequeue.h"
#include "audio.h"
#include "avfilter.h"
#include "formats.h"
...
...
@@ -85,8 +82,8 @@ static int activate(AVFilterContext *ctx)
FF_FILTER_FORWARD_STATUS_BACK_ALL
(
ctx
->
outputs
[
0
],
ctx
);
nb_samples
=
FFMIN
(
ff_
framequeue_queued_samples
(
&
ctx
->
inputs
[
0
]
->
fifo
),
ff_
framequeue_queued_samples
(
&
ctx
->
inputs
[
1
]
->
fifo
));
nb_samples
=
FFMIN
(
ff_
inlink_queued_samples
(
ctx
->
inputs
[
0
]
),
ff_
inlink_queued_samples
(
ctx
->
inputs
[
1
]
));
for
(
i
=
0
;
i
<
ctx
->
nb_inputs
&&
nb_samples
>
0
;
i
++
)
{
if
(
s
->
frames
[
i
])
continue
;
...
...
@@ -150,7 +147,7 @@ static int activate(AVFilterContext *ctx)
if
(
ff_outlink_frame_wanted
(
ctx
->
outputs
[
0
]))
{
for
(
i
=
0
;
i
<
2
;
i
++
)
{
if
(
ff_
framequeue_queued_samples
(
&
ctx
->
inputs
[
i
]
->
fifo
)
>
0
)
if
(
ff_
inlink_queued_samples
(
ctx
->
inputs
[
i
]
)
>
0
)
continue
;
ff_inlink_request_frame
(
ctx
->
inputs
[
i
]);
return
0
;
...
...
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