From 6d0546bbaf16a9652d00785b96e60dff9c206087 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Sat, 30 Mar 2013 22:15:48 +0100 Subject: [PATCH 1/2] avfiltergraph: set deprecated filter_count. --- libavfilter/avfiltergraph.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libavfilter/avfiltergraph.c b/libavfilter/avfiltergraph.c index 06b6a101de..baf739924c 100644 --- a/libavfilter/avfiltergraph.c +++ b/libavfilter/avfiltergraph.c @@ -69,6 +69,10 @@ int avfilter_graph_add_filter(AVFilterGraph *graph, AVFilterContext *filter) graph->filters = filters; graph->filters[graph->nb_filters++] = filter; +#if FF_API_FOO_COUNT + graph->filter_count = graph->nb_filters; +#endif + return 0; } From dbb1425811a672eddf4acf0513237cdf20f83756 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Wed, 27 Mar 2013 17:56:59 +0100 Subject: [PATCH 2/2] lavf: make sure stream probe data gets freed. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org --- libavformat/utils.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/utils.c b/libavformat/utils.c index 284d992ab0..89eb759bc9 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -2650,6 +2650,7 @@ void avformat_free_context(AVFormatContext *s) if (st->attached_pic.data) av_free_packet(&st->attached_pic); av_dict_free(&st->metadata); + av_freep(&st->probe_data.buf); av_free(st->index_entries); av_free(st->codec->extradata); av_free(st->codec->subtitle_header);