mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2025-02-03 10:43:09 +00:00
avfilter: have avfilter_get_by_name return const for next bump
Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:
parent
97de206b44
commit
5c439b41d0
@ -272,6 +272,9 @@ int ff_poll_frame(AVFilterLink *link)
|
|||||||
|
|
||||||
static AVFilter *first_filter;
|
static AVFilter *first_filter;
|
||||||
|
|
||||||
|
#if !FF_API_NOCONST_GET_NAME
|
||||||
|
const
|
||||||
|
#endif
|
||||||
AVFilter *avfilter_get_by_name(const char *name)
|
AVFilter *avfilter_get_by_name(const char *name)
|
||||||
{
|
{
|
||||||
AVFilter *f = NULL;
|
AVFilter *f = NULL;
|
||||||
|
@ -764,6 +764,9 @@ int avfilter_register(AVFilter *filter);
|
|||||||
* @return the filter definition, if any matching one is registered.
|
* @return the filter definition, if any matching one is registered.
|
||||||
* NULL if none found.
|
* NULL if none found.
|
||||||
*/
|
*/
|
||||||
|
#if !FF_API_NOCONST_GET_NAME
|
||||||
|
const
|
||||||
|
#endif
|
||||||
AVFilter *avfilter_get_by_name(const char *name);
|
AVFilter *avfilter_get_by_name(const char *name);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -68,5 +68,8 @@
|
|||||||
#ifndef FF_API_OLD_FILTER_REGISTER
|
#ifndef FF_API_OLD_FILTER_REGISTER
|
||||||
#define FF_API_OLD_FILTER_REGISTER (LIBAVFILTER_VERSION_MAJOR < 4)
|
#define FF_API_OLD_FILTER_REGISTER (LIBAVFILTER_VERSION_MAJOR < 4)
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef FF_API_NOCONST_GET_NAME
|
||||||
|
#define FF_API_NOCONST_GET_NAME (LIBAVFILTER_VERSION_MAJOR < 4)
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* AVFILTER_VERSION_H */
|
#endif /* AVFILTER_VERSION_H */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user