summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2010-04-13 23:22:22 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2010-04-13 23:22:22 +0000
commit22b7b23c17bfca1be19e3f9004209ed0b82ddb37 (patch)
treedde0fa9c5b8c881ccaba32089dccc41eb2e03b8a
parente5d2bdec114b2a2d3b657682972798ee7b982bb0 (diff)
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
-rw-r--r--libavfilter/avfiltergraph.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/avfiltergraph.c b/libavfilter/avfiltergraph.c
index 8fbbecf055..2fcf73ab5c 100644
--- a/libavfilter/avfiltergraph.c
+++ b/libavfilter/avfiltergraph.c
@@ -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;