History

avfiltergraph: check query_formats return value.

Nicolas George committed 14 years ago

Commit 6a4c5c71 parent a3bc7f91 file · +4 −2Browse files

Showing the changes to libavfilter/avfiltergraph.c (1 of 1 file). Show all

Unified · Split

libavfilter/avfiltergraph.c+4−2
@@ -238,9 +238,11 @@ static int query_formats(AVFilterGraph *graph, AVClass *log_ctx) · 237 unmodified lines
238238 /* ask all the sub-filters for their supported media formats */
239239 for (i = 0; i < graph->filter_count; i++) {
240240 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]);
242242 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;
244246 }
245247
246248 /* go through and merge as many format lists as possible */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t