Originally committed as revision 22878 to svn://svn.ffmpeg.org/ffmpeg/trunk
Showing the changes to libavfilter/avfiltergraph.c (1 of 1 file). Show all
Unified · Split
| @@ -40,7 +40,7 @@ int avfilter_graph_add_filter(AVFilterGraph *graph, AVFilterContext *filter) · 39 unmodified lines | ||
| 40 | 40 | sizeof(AVFilterContext*) * ++graph->filter_count); |
| 41 | 41 | |
| 42 | 42 | if (!graph->filters) |
| 43 | − return -1; | |
| 43 | + return AVERROR(ENOMEM); | |
| 44 | 44 | |
| 45 | 45 | graph->filters[graph->filter_count - 1] = filter; |
| 46 | 46 | |