diff --git a/libavfilter/avfilter.h b/libavfilter/avfilter.h index 597e7a71d0bfab54969af415d6b5986a78a25220..a3c51e0b49edffe12bda6c5a035438a632338464 100644 --- a/libavfilter/avfilter.h +++ b/libavfilter/avfilter.h @@ -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, \ diff --git a/libavfilter/avfiltergraph.c b/libavfilter/avfiltergraph.c index cad601be1ef49f98379d7e54197e49f0033b5ab1..a62fe2f79dec54472d457f78b392a78fa2e09f7d 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); diff --git a/libavfilter/avfiltergraph.h b/libavfilter/avfiltergraph.h index 74d7a128129a84dbb20ee841877934524ad9a32c..1b0d242dc59a0e4a27d37416e6959dbe8f90ced8 100644 --- a/libavfilter/avfiltergraph.h +++ b/libavfilter/avfiltergraph.h @@ -79,7 +79,7 @@ int avfilter_graph_create_filter(AVFilterContext **filt_ctx, AVFilter *filt, 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);