Commit ab298937 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'dbb14258'

* commit 'dbb14258':
  lavf: make sure stream probe data gets freed.
  avfiltergraph: set deprecated filter_count.

Conflicts:
	libavformat/utils.c

See: 44a7a630Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents e7389ed5 dbb14258
......@@ -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;
}
......
......@@ -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 ]);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment