History

Make avfilter_graph_add_filter() returns AVERROR(ENOMEM) in case of failed reallocation, rather than just -1.

Originally committed as revision 22878 to svn://svn.ffmpeg.org/ffmpeg/trunk

Stefano Sabatini committed 16 years ago

Commit 22b7b231 parent e5d2bde1 file · +1 −1Browse files

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

Unified · Split

libavfilter/avfiltergraph.c+1−1
@@ -40,7 +40,7 @@ int avfilter_graph_add_filter(AVFilterGraph *graph, AVFilterContext *filter) · 39 unmodified lines
40 sizeof(AVFilterContext*) * ++graph->filter_count);40 sizeof(AVFilterContext*) * ++graph->filter_count);
41 41
42 if (!graph->filters)42 if (!graph->filters)
43 return -1;43 return AVERROR(ENOMEM);
44 44
45 graph->filters[graph->filter_count - 1] = filter;45 graph->filters[graph->filter_count - 1] = filter;
46 46

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