Commit 78ac49c2 authored by Nicolas George's avatar Nicolas George

avfilter: document request_frame return codes.

parent 73bc019b
...@@ -451,6 +451,8 @@ struct AVFilterPad { ...@@ -451,6 +451,8 @@ struct AVFilterPad {
* Frame request callback. A call to this should result in at least one * 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 * frame being output over the given link. This should return zero on
* success, and another value on error. * success, and another value on error.
* See avfilter_request_frame() for the error codes with a specific
* meaning.
* *
* Output video pads only. * Output video pads only.
*/ */
...@@ -777,7 +779,10 @@ avfilter_get_audio_buffer_ref_from_arrays(uint8_t *data[8], int linesize[8], int ...@@ -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. * Request an input frame from the filter at the other end of the link.
* *
* @param link the input 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); int avfilter_request_frame(AVFilterLink *link);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment