[FFmpeg-devel] [PATCH 1/2] lavfi: use a new field for automatic buffer copy.

Nicolas George nicolas.george at normalesup.org
Sun Jul 29 19:29:51 CEST 2012


Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
---
 libavfilter/avfilter.h |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/libavfilter/avfilter.h b/libavfilter/avfilter.h
index d256eeb..1a7851f 100644
--- a/libavfilter/avfilter.h
+++ b/libavfilter/avfilter.h
@@ -260,6 +260,12 @@ struct AVFilterPad {
      * NULL, the filter layer will default to storing a reference to the
      * picture inside the link structure.
      *
+     * The reference given as argument is also available in link->cur_buf.
+     * It can be stored elsewhere or given away, but then clearing
+     * link->cur_buf is advised, as it is automatically unreferenced.
+     * The reference must not be unreferenced before end_frame(), as it may
+     * still be in use by the automatic copy mechanism.
+     *
      * Input video pads only.
      *
      * @return >= 0 on success, a negative AVERROR on error. picref will be
-- 
1.7.10.4



More information about the ffmpeg-devel mailing list