Browse Source

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
tags/v0.6
Stefano Sabatini 15 years ago
parent
commit
22b7b23c17
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavfilter/avfiltergraph.c

+ 1
- 1
libavfilter/avfiltergraph.c View File

@@ -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;



Loading…
Cancel
Save