[FFmpeg-devel] [PATCH] avfilter: document incompatibility between ff_inlink_consume_frame/samples

Muhammad Faiz mfcc64 at gmail.com
Thu May 18 18:55:57 EEST 2017


nearly copy paste from buffersink.h

Signed-off-by: Muhammad Faiz <mfcc64 at gmail.com>
---
 libavfilter/filters.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavfilter/filters.h b/libavfilter/filters.h
index 2c78d60..c695fbf 100644
--- a/libavfilter/filters.h
+++ b/libavfilter/filters.h
@@ -92,6 +92,9 @@ int ff_inlink_consume_frame(AVFilterLink *link, AVFrame **rframe);
  * @return  >0 if a frame is available,
  *          0 and set rframe to NULL if no frame available,
  *          or AVERROR code
+ *
+ * @warning do not mix this function with ff_inlink_consume_frame(). Use only one or
+ * the other with a single link, not both.
  */
 int ff_inlink_consume_samples(AVFilterLink *link, unsigned min, unsigned max,
                             AVFrame **rframe);
-- 
2.9.3



More information about the ffmpeg-devel mailing list