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
49670e42
Commit
49670e42
authored
May 22, 2016
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avconv: add a function for determining whether a filtergraph is simple
This makes the code easier to read.
parent
58640fe8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
3 deletions
+8
-3
avconv.c
avconv.c
+2
-2
avconv.h
avconv.h
+1
-0
avconv_filter.c
avconv_filter.c
+5
-1
No files found.
avconv.c
View file @
49670e42
...
...
@@ -2123,7 +2123,7 @@ static int transcode_init(void)
ist
=
input_streams
[
i
];
for
(
j
=
0
;
j
<
ist
->
nb_filters
;
j
++
)
{
if
(
ist
->
filters
[
j
]
->
graph
->
graph_desc
)
{
if
(
!
filtergraph_is_simple
(
ist
->
filters
[
j
]
->
graph
)
)
{
av_log
(
NULL
,
AV_LOG_INFO
,
" Stream #%d:%d (%s) -> %s"
,
ist
->
file_index
,
ist
->
st
->
index
,
ist
->
dec
?
ist
->
dec
->
name
:
"?"
,
ist
->
filters
[
j
]
->
name
);
...
...
@@ -2144,7 +2144,7 @@ static int transcode_init(void)
continue
;
}
if
(
ost
->
filter
&&
ost
->
filter
->
graph
->
graph_desc
)
{
if
(
ost
->
filter
&&
!
filtergraph_is_simple
(
ost
->
filter
->
graph
)
)
{
/* output from a complex graph */
av_log
(
NULL
,
AV_LOG_INFO
,
" %s"
,
ost
->
filter
->
name
);
if
(
nb_filtergraphs
>
1
)
...
...
avconv.h
View file @
49670e42
...
...
@@ -449,6 +449,7 @@ int guess_input_channel_layout(InputStream *ist);
int
configure_filtergraph
(
FilterGraph
*
fg
);
int
configure_output_filter
(
FilterGraph
*
fg
,
OutputFilter
*
ofilter
,
AVFilterInOut
*
out
);
int
ist_in_filtergraph
(
FilterGraph
*
fg
,
InputStream
*
ist
);
int
filtergraph_is_simple
(
FilterGraph
*
fg
);
FilterGraph
*
init_simple_filtergraph
(
InputStream
*
ist
,
OutputStream
*
ost
);
int
init_complex_filtergraph
(
FilterGraph
*
fg
);
...
...
avconv_filter.c
View file @
49670e42
...
...
@@ -691,7 +691,7 @@ static int configure_input_filter(FilterGraph *fg, InputFilter *ifilter,
int
configure_filtergraph
(
FilterGraph
*
fg
)
{
AVFilterInOut
*
inputs
,
*
outputs
,
*
cur
;
int
ret
,
i
,
simple
=
!
fg
->
graph_desc
;
int
ret
,
i
,
simple
=
filtergraph_is_simple
(
fg
)
;
const
char
*
graph_desc
=
simple
?
fg
->
outputs
[
0
]
->
ost
->
avfilter
:
fg
->
graph_desc
;
...
...
@@ -760,3 +760,7 @@ int ist_in_filtergraph(FilterGraph *fg, InputStream *ist)
return
0
;
}
int
filtergraph_is_simple
(
FilterGraph
*
fg
)
{
return
!
fg
->
graph_desc
;
}
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