[FFmpeg-cvslog] r26323 - in trunk/libavfilter: avfilter.h avfiltergraph.c avfiltergraph.h
stefano
subversion
Wed Jan 12 22:23:16 CET 2011
Author: stefano
Date: Wed Jan 12 22:23:16 2011
New Revision: 26323
Log:
Make avfilter_graph_free() do nothing if graph is NULL.
Modified:
trunk/libavfilter/avfilter.h
trunk/libavfilter/avfiltergraph.c
trunk/libavfilter/avfiltergraph.h
Modified: trunk/libavfilter/avfilter.h
==============================================================================
--- trunk/libavfilter/avfilter.h Wed Jan 12 19:25:03 2011 (r26322)
+++ trunk/libavfilter/avfilter.h Wed Jan 12 22:23:16 2011 (r26323)
@@ -28,7 +28,7 @@
#define LIBAVFILTER_VERSION_MAJOR 1
#define LIBAVFILTER_VERSION_MINOR 73
-#define LIBAVFILTER_VERSION_MICRO 0
+#define LIBAVFILTER_VERSION_MICRO 1
#define LIBAVFILTER_VERSION_INT AV_VERSION_INT(LIBAVFILTER_VERSION_MAJOR, \
LIBAVFILTER_VERSION_MINOR, \
Modified: trunk/libavfilter/avfiltergraph.c
==============================================================================
--- trunk/libavfilter/avfiltergraph.c Wed Jan 12 19:25:03 2011 (r26322)
+++ trunk/libavfilter/avfiltergraph.c Wed Jan 12 22:23:16 2011 (r26323)
@@ -34,6 +34,8 @@ AVFilterGraph *avfilter_graph_alloc(void
void avfilter_graph_free(AVFilterGraph *graph)
{
+ if (!graph)
+ return;
for (; graph->filter_count > 0; graph->filter_count --)
avfilter_free(graph->filters[graph->filter_count - 1]);
av_freep(&graph->scale_sws_opts);
Modified: trunk/libavfilter/avfiltergraph.h
==============================================================================
--- trunk/libavfilter/avfiltergraph.h Wed Jan 12 19:25:03 2011 (r26322)
+++ trunk/libavfilter/avfiltergraph.h Wed Jan 12 22:23:16 2011 (r26323)
@@ -79,7 +79,7 @@ int avfilter_graph_create_filter(AVFilte
int avfilter_graph_config(AVFilterGraph *graphctx, AVClass *log_ctx);
/**
- * Free a graph and destroy its links.
+ * Free a graph and destroy its links, graph may be NULL.
*/
void avfilter_graph_free(AVFilterGraph *graph);
More information about the ffmpeg-cvslog
mailing list