diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-04-13 23:22:22 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-04-13 23:22:22 +0000 |
commit | 22b7b23c17bfca1be19e3f9004209ed0b82ddb37 (patch) | |
tree | dde0fa9c5b8c881ccaba32089dccc41eb2e03b8a /libavfilter | |
parent | e5d2bdec114b2a2d3b657682972798ee7b982bb0 (diff) | |
download | ffmpeg-22b7b23c17bfca1be19e3f9004209ed0b82ddb37.tar.gz |
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
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/avfiltergraph.c | 2 |
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; |