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
59cef18c
Commit
59cef18c
authored
Jun 11, 2011
by
Stefano Sabatini
Committed by
Anton Khirnov
Sep 28, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfiltergraph: use meaningful error codes
Signed-off-by:
Anton Khirnov
<
anton@khirnov.net
>
parent
4bb0b31f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
avfiltergraph.c
libavfilter/avfiltergraph.c
+7
-5
No files found.
libavfilter/avfiltergraph.c
View file @
59cef18c
...
@@ -90,7 +90,7 @@ int ff_avfilter_graph_check_validity(AVFilterGraph *graph, AVClass *log_ctx)
...
@@ -90,7 +90,7 @@ int ff_avfilter_graph_check_validity(AVFilterGraph *graph, AVClass *log_ctx)
av_log
(
log_ctx
,
AV_LOG_ERROR
,
av_log
(
log_ctx
,
AV_LOG_ERROR
,
"Input pad
\"
%s
\"
for the filter
\"
%s
\"
of type
\"
%s
\"
not connected to any source
\n
"
,
"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
);
filt
->
input_pads
[
j
].
name
,
filt
->
name
,
filt
->
filter
->
name
);
return
-
1
;
return
AVERROR
(
EINVAL
)
;
}
}
}
}
...
@@ -99,7 +99,7 @@ int ff_avfilter_graph_check_validity(AVFilterGraph *graph, AVClass *log_ctx)
...
@@ -99,7 +99,7 @@ int ff_avfilter_graph_check_validity(AVFilterGraph *graph, AVClass *log_ctx)
av_log
(
log_ctx
,
AV_LOG_ERROR
,
av_log
(
log_ctx
,
AV_LOG_ERROR
,
"Output pad
\"
%s
\"
for the filter
\"
%s
\"
of type
\"
%s
\"
not connected to any destination
\n
"
,
"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
);
filt
->
output_pads
[
j
].
name
,
filt
->
name
,
filt
->
filter
->
name
);
return
-
1
;
return
AVERROR
(
EINVAL
)
;
}
}
}
}
}
}
...
@@ -178,7 +178,7 @@ static int query_formats(AVFilterGraph *graph, AVClass *log_ctx)
...
@@ -178,7 +178,7 @@ static int query_formats(AVFilterGraph *graph, AVClass *log_ctx)
av_log
(
log_ctx
,
AV_LOG_ERROR
,
av_log
(
log_ctx
,
AV_LOG_ERROR
,
"Impossible to convert between the formats supported by the filter "
"Impossible to convert between the formats supported by the filter "
"'%s' and the filter '%s'
\n
"
,
link
->
src
->
name
,
link
->
dst
->
name
);
"'%s' and the filter '%s'
\n
"
,
link
->
src
->
name
,
link
->
dst
->
name
);
return
-
1
;
return
AVERROR
(
EINVAL
)
;
}
}
}
}
}
}
...
@@ -216,9 +216,11 @@ static void pick_formats(AVFilterGraph *graph)
...
@@ -216,9 +216,11 @@ static void pick_formats(AVFilterGraph *graph)
int
ff_avfilter_graph_config_formats
(
AVFilterGraph
*
graph
,
AVClass
*
log_ctx
)
int
ff_avfilter_graph_config_formats
(
AVFilterGraph
*
graph
,
AVClass
*
log_ctx
)
{
{
int
ret
;
/* find supported formats from sub-filters, and merge along links */
/* find supported formats from sub-filters, and merge along links */
if
(
query_formats
(
graph
,
log_ctx
)
)
if
(
(
ret
=
query_formats
(
graph
,
log_ctx
))
<
0
)
return
-
1
;
return
ret
;
/* Once everything is merged, it's possible that we'll still have
/* Once everything is merged, it's possible that we'll still have
* multiple valid media format choices. We pick the first one. */
* multiple valid media format choices. We pick the first one. */
...
...
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