[PATCH] Make avfilter_default_free_buffer() public.

Stefano Sabatini stefano.sabatini-lala
Tue Nov 23 00:39:57 CET 2010


---
 libavfilter/avfilter.h |    3 +++
 libavfilter/defaults.c |    2 +-
 2 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/libavfilter/avfilter.h b/libavfilter/avfilter.h
index f49a523..a30390e 100644
--- a/libavfilter/avfilter.h
+++ b/libavfilter/avfilter.h
@@ -449,6 +449,9 @@ int avfilter_default_config_output_link(AVFilterLink *link);
 /** default handler for config_props() for audio/video inputs */
 int avfilter_default_config_input_link (AVFilterLink *link);
 
+/** default handler for freeing audio/video buffer when there are no references left */
+void avfilter_default_free_buffer(AVFilterBuffer *buf);
+
 /** default handler for get_video_buffer() for video inputs */
 AVFilterBufferRef *avfilter_default_get_video_buffer(AVFilterLink *link,
                                                      int perms, int w, int h);
diff --git a/libavfilter/defaults.c b/libavfilter/defaults.c
index c7b4b47..78e4c62 100644
--- a/libavfilter/defaults.c
+++ b/libavfilter/defaults.c
@@ -25,7 +25,7 @@
 #include "avfilter.h"
 
 /* TODO: buffer pool.  see comment for avfilter_default_get_video_buffer() */
-static void avfilter_default_free_buffer(AVFilterBuffer *ptr)
+void avfilter_default_free_buffer(AVFilterBuffer *ptr)
 {
     av_free(ptr->data[0]);
     av_free(ptr);
-- 
1.7.1


--zhXaljGHf11kAtnf
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment; filename="0002-Implement-avfilter_get_video_buffer_ref_from_arrays.patch"




More information about the ffmpeg-devel mailing list