Commit ac2fe3df authored by stefano's avatar stefano

Make avfilter_graph_add_filter() returns AVERROR(ENOMEM) in case of

failed reallocation, rather than just -1.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@22878 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 4138955d
......@@ -40,7 +40,7 @@ int avfilter_graph_add_filter(AVFilterGraph *graph, AVFilterContext *filter)
sizeof(AVFilterContext*) * ++graph->filter_count);
if (!graph->filters)
return -1;
return AVERROR(ENOMEM);
graph->filters[graph->filter_count - 1] = filter;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment