Originally committed as revision 26323 to svn://svn.ffmpeg.org/ffmpeg/trunk
Showing the changes to libavfilter/avfiltergraph.c (1 of 3 files). Show all
Unified · Split
| @@ -34,6 +34,8 @@ AVFilterGraph *avfilter_graph_alloc(void) · 33 unmodified lines | ||
| 34 | 34 | |
| 35 | 35 | void avfilter_graph_free(AVFilterGraph *graph) |
| 36 | 36 | { |
| 37 | + if (!graph) | |
| 38 | + return; | |
| 37 | 39 | for (; graph->filter_count > 0; graph->filter_count --) |
| 38 | 40 | avfilter_free(graph->filters[graph->filter_count - 1]); |
| 39 | 41 | av_freep(&graph->scale_sws_opts); |