mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
avfiltergraph: check query_formats return value.
This commit is contained in:
parent
a3bc7f916d
commit
6a4c5c730e
@ -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…
Reference in New Issue
Block a user