Originally committed as revision 25673 to svn://svn.ffmpeg.org/ffmpeg/trunk
Showing the changes to libavfilter/avfiltergraph.c (1 of 6 files). Show all
Unified · Split
| @@ -26,6 +26,11 @@ · 25 unmodified lines | |||
| 26 | #include "avfilter.h" | 26 | #include "avfilter.h" |
| 27 | #include "avfiltergraph.h" | 27 | #include "avfiltergraph.h" |
| 28 | 28 | ||
| 29 | AVFilterGraph *avfilter_graph_alloc(void) | ||
| 30 | { | ||
| 31 | return av_mallocz(sizeof(AVFilterGraph)); | ||
| 32 | } | ||
| 33 | |||
| 29 | void avfilter_graph_destroy(AVFilterGraph *graph) | 34 | void avfilter_graph_destroy(AVFilterGraph *graph) |
| 30 | { | 35 | { |
| 31 | for(; graph->filter_count > 0; graph->filter_count --) | 36 | for(; graph->filter_count > 0; graph->filter_count --) |