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

Submitted by Muhammad Faiz on May 18, 2017, 3:55 p.m.

Details

Message ID 20170518155557.26214-1-mfcc64@gmail.com
State New
Headers show

Commit Message

Muhammad Faiz May 18, 2017, 3:55 p.m.
nearly copy paste from buffersink.h

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

Patch hide | download patch | download mbox

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);