summaryrefslogtreecommitdiffstats
path: root/libavfilter/avfilter.h
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2012-04-17 18:26:44 +0200
committerNicolas George <nicolas.george@normalesup.org>2012-04-23 14:13:40 +0200
commit78ac49c2335f387d2c3d080b619c27ecd69fb41f (patch)
tree2400953dabf03446af8e218f8f8a6d51acf24f72 /libavfilter/avfilter.h
parent73bc019baf421bc954439d03b51984ff118e4fe1 (diff)
downloadffmpeg-streaming-78ac49c2335f387d2c3d080b619c27ecd69fb41f.zip
ffmpeg-streaming-78ac49c2335f387d2c3d080b619c27ecd69fb41f.tar.gz
avfilter: document request_frame return codes.
Diffstat (limited to 'libavfilter/avfilter.h')
-rw-r--r--libavfilter/avfilter.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/libavfilter/avfilter.h b/libavfilter/avfilter.h
index fef348d..f110623 100644
--- a/libavfilter/avfilter.h
+++ b/libavfilter/avfilter.h
@@ -451,6 +451,8 @@ struct AVFilterPad {
* Frame request callback. A call to this should result in at least one
* frame being output over the given link. This should return zero on
* success, and another value on error.
+ * See avfilter_request_frame() for the error codes with a specific
+ * meaning.
*
* Output video pads only.
*/
@@ -777,7 +779,10 @@ avfilter_get_audio_buffer_ref_from_arrays(uint8_t *data[8], int linesize[8], int
* Request an input frame from the filter at the other end of the link.
*
* @param link the input link
- * @return zero on success
+ * @return zero on success or a negative error code; in particular:
+ * AVERROR_EOF means that the end of frames have been reached;
+ * AVERROR(EAGAIN) means that no frame could be immediately
+ * produced.
*/
int avfilter_request_frame(AVFilterLink *link);
OpenPOWER on IntegriCloud