Commit 061f37df authored by vitor's avatar vitor

Ensure that the filter_count member is reset to zero when emptying the graph

Commited in SoC by Bobby Bingham on 2007-07-14 23:19:22


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@12690 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent e0fe614f
......@@ -37,10 +37,8 @@ AVFilterGraph *avfilter_create_graph(void)
static void destroy_graph_filters(AVFilterGraph *graph)
{
unsigned i;
for(i = 0; i < graph->filter_count; i ++)
avfilter_destroy(graph->filters[i]);
for(; graph->filter_count > 0; graph->filter_count --)
avfilter_destroy(graph->filters[graph->filter_count - 1]);
av_freep(&graph->filters);
}
......
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