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
4040 sizeof(AVFilterContext*) * ++graph->filter_count);
4141
4242 if (!graph->filters)
43− return -1;
43+ return AVERROR(ENOMEM);
4444
4545 graph->filters[graph->filter_count - 1] = filter;
4646

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