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
ec3b5dea
Commit
ec3b5dea
authored
Apr 25, 2020
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/f_interleave: make sure that all frames in inlink queue are used
parent
b29b934e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
f_interleave.c
libavfilter/f_interleave.c
+3
-5
No files found.
libavfilter/f_interleave.c
View file @
ec3b5dea
...
@@ -64,26 +64,24 @@ static int activate(AVFilterContext *ctx)
...
@@ -64,26 +64,24 @@ static int activate(AVFilterContext *ctx)
AVFilterLink
*
outlink
=
ctx
->
outputs
[
0
];
AVFilterLink
*
outlink
=
ctx
->
outputs
[
0
];
InterleaveContext
*
s
=
ctx
->
priv
;
InterleaveContext
*
s
=
ctx
->
priv
;
int64_t
q_pts
,
pts
=
INT64_MAX
;
int64_t
q_pts
,
pts
=
INT64_MAX
;
int
i
,
nb_eofs
=
0
,
input_idx
=
-
1
,
nb_active_inputs
=
0
;
int
i
,
nb_eofs
=
0
,
input_idx
=
-
1
;
int
nb_inputs_with_frames
=
0
;
int
nb_inputs_with_frames
=
0
;
FF_FILTER_FORWARD_STATUS_BACK_ALL
(
outlink
,
ctx
);
FF_FILTER_FORWARD_STATUS_BACK_ALL
(
outlink
,
ctx
);
for
(
i
=
0
;
i
<
ctx
->
nb_inputs
;
i
++
)
{
for
(
i
=
0
;
i
<
ctx
->
nb_inputs
;
i
++
)
{
if
(
!
ff_outlink_get_status
(
ctx
->
inputs
[
i
]))
{
if
(
!
ff_outlink_get_status
(
ctx
->
inputs
[
i
]))
{
nb_active_inputs
++
;
if
(
!
ff_inlink_queued_frames
(
ctx
->
inputs
[
i
]))
if
(
!
ff_inlink_queued_frames
(
ctx
->
inputs
[
i
]))
break
;
break
;
nb_inputs_with_frames
++
;
nb_inputs_with_frames
++
;
}
}
}
}
if
(
nb_
active_inputs
>
0
&&
nb_active_inputs
==
nb_inputs_with_frames
)
{
if
(
nb_
inputs_with_frames
>
0
)
{
for
(
i
=
0
;
i
<
ctx
->
nb_inputs
;
i
++
)
{
for
(
i
=
0
;
i
<
ctx
->
nb_inputs
;
i
++
)
{
AVFrame
*
frame
;
AVFrame
*
frame
;
if
(
ff_outlink_get_status
(
ctx
->
inputs
[
i
])
||
if
(
ff_inlink_queued_frames
(
ctx
->
inputs
[
i
])
==
0
)
ff_inlink_queued_frames
(
ctx
->
inputs
[
i
])
==
0
)
continue
;
continue
;
frame
=
ff_inlink_peek_frame
(
ctx
->
inputs
[
i
],
0
);
frame
=
ff_inlink_peek_frame
(
ctx
->
inputs
[
i
],
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