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
ac84e618
Commit
ac84e618
authored
May 22, 2016
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfiltergraph: check the query_formats() return value
parent
2ef6dab0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
avfiltergraph.c
libavfilter/avfiltergraph.c
+8
-2
No files found.
libavfilter/avfiltergraph.c
View file @
ac84e618
...
@@ -271,9 +271,15 @@ static int query_formats(AVFilterGraph *graph, AVClass *log_ctx)
...
@@ -271,9 +271,15 @@ static int query_formats(AVFilterGraph *graph, AVClass *log_ctx)
/* ask all the sub-filters for their supported media formats */
/* ask all the sub-filters for their supported media formats */
for
(
i
=
0
;
i
<
graph
->
nb_filters
;
i
++
)
{
for
(
i
=
0
;
i
<
graph
->
nb_filters
;
i
++
)
{
if
(
graph
->
filters
[
i
]
->
filter
->
query_formats
)
if
(
graph
->
filters
[
i
]
->
filter
->
query_formats
)
graph
->
filters
[
i
]
->
filter
->
query_formats
(
graph
->
filters
[
i
]);
ret
=
graph
->
filters
[
i
]
->
filter
->
query_formats
(
graph
->
filters
[
i
]);
else
else
ff_default_query_formats
(
graph
->
filters
[
i
]);
ret
=
ff_default_query_formats
(
graph
->
filters
[
i
]);
if
(
ret
<
0
)
{
av_log
(
log_ctx
,
AV_LOG_ERROR
,
"Error querying formats for the filter %s (%s)
\n
"
,
graph
->
filters
[
i
]
->
name
,
graph
->
filters
[
i
]
->
filter
->
name
);
return
ret
;
}
}
}
/* go through and merge as many format lists as possible */
/* go through and merge as many format lists as possible */
...
...
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