OSDN Git Service
(root)
/
coroid
/
ffmpeg_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba56640
)
Ensure that the filter_count member is reset to zero when emptying the graph
author
Vitor Sessak
<vitor1001@gmail.com>
Fri, 4 Apr 2008 20:05:01 +0000
(20:05 +0000)
committer
Vitor Sessak
<vitor1001@gmail.com>
Fri, 4 Apr 2008 20:05:01 +0000
(20:05 +0000)
Commited in SoC by Bobby Bingham on 2007-07-14 23:19:22
Originally committed as revision 12690 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavfilter/avfiltergraph.c
patch
|
blob
|
history
diff --git
a/libavfilter/avfiltergraph.c
b/libavfilter/avfiltergraph.c
index
d4b6bf1
..
684da30
100644
(file)
--- a/
libavfilter/avfiltergraph.c
+++ b/
libavfilter/avfiltergraph.c
@@
-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);
}