Showing the changes to libavfilter/avfiltergraph.c (1 of 1 file). Show all
Unified · Split
| @@ -238,9 +238,11 @@ static int query_formats(AVFilterGraph *graph, AVClass *log_ctx) · 237 unmodified lines | |||
| 238 | /* ask all the sub-filters for their supported media formats */ | 238 | /* ask all the sub-filters for their supported media formats */ |
| 239 | for (i = 0; i < graph->filter_count; i++) { | 239 | for (i = 0; i < graph->filter_count; i++) { |
| 240 | if (graph->filters[i]->filter->query_formats) | 240 | if (graph->filters[i]->filter->query_formats) |
| 241 | graph->filters[i]->filter->query_formats(graph->filters[i]); | 241 | ret = graph->filters[i]->filter->query_formats(graph->filters[i]); |
| 242 | else | 242 | else |
| 243 | ff_default_query_formats(graph->filters[i]); | 243 | ret = ff_default_query_formats(graph->filters[i]); |
| 244 | if (ret < 0) | ||
| 245 | return ret; | ||
| 244 | } | 246 | } |
| 245 | 247 | ||
| 246 | /* go through and merge as many format lists as possible */ | 248 | /* go through and merge as many format lists as possible */ |