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
3bb170e5
Commit
3bb170e5
authored
Oct 01, 2019
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/f_streamselect: add check case when nothing is done
Fixes #7955.
parent
f66458cf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
f_streamselect.c
libavfilter/f_streamselect.c
+5
-1
No files found.
libavfilter/f_streamselect.c
View file @
3bb170e5
...
...
@@ -21,6 +21,7 @@
#include "libavutil/opt.h"
#include "avfilter.h"
#include "audio.h"
#include "filters.h"
#include "formats.h"
#include "framesync.h"
#include "internal.h"
...
...
@@ -53,7 +54,7 @@ static int process_frame(FFFrameSync *fs)
AVFilterContext
*
ctx
=
fs
->
parent
;
StreamSelectContext
*
s
=
fs
->
opaque
;
AVFrame
**
in
=
s
->
frames
;
int
i
,
j
,
ret
=
0
;
int
i
,
j
,
ret
=
0
,
have_out
=
0
;
for
(
i
=
0
;
i
<
ctx
->
nb_inputs
;
i
++
)
{
if
((
ret
=
ff_framesync_get_frame
(
&
s
->
fs
,
i
,
&
in
[
i
],
0
))
<
0
)
...
...
@@ -75,12 +76,15 @@ static int process_frame(FFFrameSync *fs)
out
->
pts
=
av_rescale_q
(
s
->
fs
.
pts
,
s
->
fs
.
time_base
,
ctx
->
outputs
[
i
]
->
time_base
);
s
->
last_pts
[
j
]
=
in
[
j
]
->
pts
;
ret
=
ff_filter_frame
(
ctx
->
outputs
[
i
],
out
);
have_out
=
1
;
if
(
ret
<
0
)
return
ret
;
}
}
}
if
(
!
have_out
)
ff_filter_set_ready
(
ctx
,
100
);
return
ret
;
}
...
...
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