From caeb0c30272a42c34b7f80acea90fa14cf98ec20 Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Wed, 12 Jan 2011 21:23:16 +0000 Subject: Make avfilter_graph_free() do nothing if graph is NULL. Originally committed as revision 26323 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavfilter/avfiltergraph.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libavfilter/avfiltergraph.c') diff --git a/libavfilter/avfiltergraph.c b/libavfilter/avfiltergraph.c index cad601be1e..a62fe2f79d 100644 --- a/libavfilter/avfiltergraph.c +++ b/libavfilter/avfiltergraph.c @@ -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); -- cgit v1.2.3