[FFmpeg-cvslog] buffersrc: export forgotten function

Michael Niedermayer git at videolan.org
Thu May 17 04:12:57 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed May 16 23:13:44 2012 +0200| [3e2cf79e1549f6ba64aa6219292cc2b638a29b46] | committer: Michael Niedermayer

buffersrc: export forgotten function

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3e2cf79e1549f6ba64aa6219292cc2b638a29b46
---

 libavfilter/buffersrc.c |    2 +-
 libavfilter/buffersrc.h |    9 +++++++++
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/libavfilter/buffersrc.c b/libavfilter/buffersrc.c
index 305d1c4..7cc80d8 100644
--- a/libavfilter/buffersrc.c
+++ b/libavfilter/buffersrc.c
@@ -138,7 +138,7 @@ int av_buffersrc_write_frame(AVFilterContext *buffer_filter, AVFrame *frame)
     return 0;
 }
 
-static int av_buffersrc_buffer(AVFilterContext *s, AVFilterBufferRef *buf)
+int av_buffersrc_buffer(AVFilterContext *s, AVFilterBufferRef *buf)
 {
     BufferSourceContext *c = s->priv;
     int ret;
diff --git a/libavfilter/buffersrc.h b/libavfilter/buffersrc.h
index 25e2fbf..cd6492e 100644
--- a/libavfilter/buffersrc.h
+++ b/libavfilter/buffersrc.h
@@ -63,6 +63,15 @@ int av_buffersrc_add_ref(AVFilterContext *buffer_src,
 unsigned av_buffersrc_get_nb_failed_requests(AVFilterContext *buffer_src);
 
 /**
+ * Add a buffer to the filtergraph s.
+ *
+ * @param buf buffer containing frame data to be passed down the filtergraph.
+ * This function will take ownership of buf, the user must not free it.
+ * A NULL buf signals EOF -- i.e. no more frames will be sent to this filter.
+ */
+int av_buffersrc_buffer(AVFilterContext *s, AVFilterBufferRef *buf);
+
+/**
  * Add a frame to the buffer source.
  *
  * @param s an instance of the buffersrc filter.



More information about the ffmpeg-cvslog mailing list