aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-04-04 13:09:54 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-04-04 13:24:33 +0200
commitab2989378fc59128b7e372fadceeb376c9e8cae0 (patch)
tree5781feee90fe410edfa45f4441ddf152dc356e5e
parente7389ed5d0bd13daf0af9ca7a4b9bc0d21aad9b1 (diff)
parentdbb1425811a672eddf4acf0513237cdf20f83756 (diff)
downloadffmpeg-ab2989378fc59128b7e372fadceeb376c9e8cae0.tar.gz
Merge commit 'dbb1425811a672eddf4acf0513237cdf20f83756'
* commit 'dbb1425811a672eddf4acf0513237cdf20f83756': lavf: make sure stream probe data gets freed. avfiltergraph: set deprecated filter_count. Conflicts: libavformat/utils.c See: 44a7a6300d104dd453bcd5c601e9c6944fb34679 Merged-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavfilter/avfiltergraph.c4
-rw-r--r--libavformat/utils.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/libavfilter/avfiltergraph.c b/libavfilter/avfiltergraph.c
index 0101d650a6..75e828feeb 100644
--- a/libavfilter/avfiltergraph.c
+++ b/libavfilter/avfiltergraph.c
@@ -84,6 +84,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_unused = graph->nb_filters;
+#endif
+
return 0;
}
diff --git a/libavformat/utils.c b/libavformat/utils.c
index c5d6d322c3..e32f97288d 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -3274,6 +3274,7 @@ void ff_free_stream(AVFormatContext *s, AVStream *st){
if (st->attached_pic.data)
av_free_packet(&st->attached_pic);
av_dict_free(&st->metadata);
+ av_freep(&st->probe_data.buf);
av_freep(&st->index_entries);
av_freep(&st->codec->extradata);
av_freep(&st->codec->subtitle_header);
@@ -3282,7 +3283,6 @@ void ff_free_stream(AVFormatContext *s, AVStream *st){
if (st->info)
av_freep(&st->info->duration_error);
av_freep(&st->info);
- av_freep(&st->probe_data.buf);
av_freep(&s->streams[ --s->nb_streams ]);
}