Commit 3e12b589 authored by Mina Nagy Zaki's avatar Mina Nagy Zaki Committed by Stefano Sabatini

lavfi: fix doxygen doc for config_props() callback

Update/extend documentation related to the link fields to set, and fix
a pads->filters braino.
Signed-off-by: 's avatarStefano Sabatini <stefano.sabatini-lala@poste.it>
parent 5f68a91b
...@@ -438,15 +438,18 @@ struct AVFilterPad { ...@@ -438,15 +438,18 @@ struct AVFilterPad {
/** /**
* Link configuration callback. * Link configuration callback.
* *
* For output pads, this should set the link properties such as * For output pads, this should set the following link properties:
* width/height. This should NOT set the format property - that is * video: width, height, sample_aspect_ratio, time_base
* negotiated between filters by the filter system using the * audio: sample_rate.
*
* This should NOT set properties such as format, channel_layout, etc which
* are negotiated between filters by the filter system using the
* query_formats() callback before this function is called. * query_formats() callback before this function is called.
* *
* For input pads, this should check the properties of the link, and update * For input pads, this should check the properties of the link, and update
* the filter's internal state as necessary. * the filter's internal state as necessary.
* *
* For both input and output filters, this should return zero on success, * For both input and output pads, this should return zero on success,
* and another value on error. * and another value on error.
*/ */
int (*config_props)(AVFilterLink *link); int (*config_props)(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