diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-01-12 21:23:16 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-01-12 21:23:16 +0000 |
commit | caeb0c30272a42c34b7f80acea90fa14cf98ec20 (patch) | |
tree | d0a8b9b1b41bd1e0dd0c39560dd9d31c0bf8d47b /libavfilter/avfiltergraph.c | |
parent | b382d1e3e49143c7e9ebab3986dd84b64073de66 (diff) | |
download | ffmpeg-caeb0c30272a42c34b7f80acea90fa14cf98ec20.tar.gz |
Make avfilter_graph_free() do nothing if graph is NULL.
Originally committed as revision 26323 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavfilter/avfiltergraph.c')
-rw-r--r-- | libavfilter/avfiltergraph.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |