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
f67ebf5b
Commit
f67ebf5b
authored
Nov 21, 2012
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/avfiltergraph: improve error message in graph_check_validity()
Fix trac ticket #1944.
parent
eb87b340
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
avfiltergraph.c
libavfilter/avfiltergraph.c
+7
-4
No files found.
libavfilter/avfiltergraph.c
View file @
f67ebf5b
...
...
@@ -113,22 +113,25 @@ static int graph_check_validity(AVFilterGraph *graph, AVClass *log_ctx)
int
i
,
j
;
for
(
i
=
0
;
i
<
graph
->
filter_count
;
i
++
)
{
const
AVFilterPad
*
pad
;
filt
=
graph
->
filters
[
i
];
for
(
j
=
0
;
j
<
filt
->
nb_inputs
;
j
++
)
{
if
(
!
filt
->
inputs
[
j
]
||
!
filt
->
inputs
[
j
]
->
src
)
{
pad
=
&
filt
->
input_pads
[
j
];
av_log
(
log_ctx
,
AV_LOG_ERROR
,
"Input pad
\"
%s
\"
for the filter
\"
%s
\"
of type
\"
%s
\"
not connected to any source
\n
"
,
filt
->
input_pads
[
j
].
name
,
filt
->
name
,
filt
->
filter
->
name
);
"Input pad
\"
%s
\"
with type %s of the filter instance
\"
%s
\"
of %s
not connected to any source
\n
"
,
pad
->
name
,
av_get_media_type_string
(
pad
->
type
)
,
filt
->
name
,
filt
->
filter
->
name
);
return
AVERROR
(
EINVAL
);
}
}
for
(
j
=
0
;
j
<
filt
->
nb_outputs
;
j
++
)
{
if
(
!
filt
->
outputs
[
j
]
||
!
filt
->
outputs
[
j
]
->
dst
)
{
pad
=
&
filt
->
output_pads
[
j
];
av_log
(
log_ctx
,
AV_LOG_ERROR
,
"Output pad
\"
%s
\"
for the filter
\"
%s
\"
of type
\"
%s
\"
not connected to any destination
\n
"
,
filt
->
output_pads
[
j
].
name
,
filt
->
name
,
filt
->
filter
->
name
);
"Output pad
\"
%s
\"
with type %s of the filter instance
\"
%s
\"
of %s
not connected to any destination
\n
"
,
pad
->
name
,
av_get_media_type_string
(
pad
->
type
)
,
filt
->
name
,
filt
->
filter
->
name
);
return
AVERROR
(
EINVAL
);
}
}
...
...
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