[FFmpeg-cvslog] r22878 - trunk/libavfilter/avfiltergraph.c

stefano subversion
Wed Apr 14 01:22:22 CEST 2010


Author: stefano
Date: Wed Apr 14 01:22:22 2010
New Revision: 22878

Log:
Make avfilter_graph_add_filter() returns AVERROR(ENOMEM) in case of
failed reallocation, rather than just -1.

Modified:
   trunk/libavfilter/avfiltergraph.c

Modified: trunk/libavfilter/avfiltergraph.c
==============================================================================
--- trunk/libavfilter/avfiltergraph.c	Wed Apr 14 00:52:14 2010	(r22877)
+++ trunk/libavfilter/avfiltergraph.c	Wed Apr 14 01:22:22 2010	(r22878)
@@ -40,7 +40,7 @@ int avfilter_graph_add_filter(AVFilterGr
                                 sizeof(AVFilterContext*) * ++graph->filter_count);
 
     if (!graph->filters)
-        return -1;
+        return AVERROR(ENOMEM);
 
     graph->filters[graph->filter_count - 1] = filter;
 



More information about the ffmpeg-cvslog mailing list