lavfi: deprecate avfilter_link_free()

It never makes sense for this function to be called by users.
This commit is contained in:
Anton Khirnov 2024-03-04 16:23:31 +01:00
parent c0aee39412
commit 6b1f41e152
3 changed files with 15 additions and 3 deletions

View file

@ -676,10 +676,13 @@ struct AVFilterLink {
int avfilter_link(AVFilterContext *src, unsigned srcpad,
AVFilterContext *dst, unsigned dstpad);
#if FF_API_LINK_PUBLIC
/**
* Free the link in *link, and set its pointer to NULL.
* @deprecated this function should never be called by users
*/
attribute_deprecated
void avfilter_link_free(AVFilterLink **link);
#endif
/**
* Negotiate the media format, dimensions, etc of all inputs to a filter.