forked from FFmpeg/FFmpeg
avfiltergraph: check query_formats return value.
This commit is contained in:
parent
a3bc7f916d
commit
6a4c5c730e
1 changed files with 4 additions and 2 deletions
|
@ -238,9 +238,11 @@ 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->filter_count; i++) {
|
for (i = 0; i < graph->filter_count; 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)
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* go through and merge as many format lists as possible */
|
/* go through and merge as many format lists as possible */
|
||||||
|
|
Loading…
Add table
Reference in a new issue