mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
Merge commit '5c439b41d0489412c0a4cf6dfb98915251677b8e'
* commit '5c439b41d0489412c0a4cf6dfb98915251677b8e': avfilter: have avfilter_get_by_name return const for next bump Conflicts: libavfilter/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
a1ce060c51
@ -457,6 +457,9 @@ int avfilter_process_command(AVFilterContext *filter, const char *cmd, const cha
|
||||
|
||||
static AVFilter *first_filter;
|
||||
|
||||
#if !FF_API_NOCONST_GET_NAME
|
||||
const
|
||||
#endif
|
||||
AVFilter *avfilter_get_by_name(const char *name)
|
||||
{
|
||||
const AVFilter *f = NULL;
|
||||
|
@ -991,6 +991,9 @@ int avfilter_register(AVFilter *filter);
|
||||
* @return the filter definition, if any matching one is registered.
|
||||
* NULL if none found.
|
||||
*/
|
||||
#if !FF_API_NOCONST_GET_NAME
|
||||
const
|
||||
#endif
|
||||
AVFilter *avfilter_get_by_name(const char *name);
|
||||
|
||||
/**
|
||||
|
@ -85,5 +85,8 @@
|
||||
#ifndef FF_API_DRAWTEXT_OLD_TIMELINE
|
||||
#define FF_API_DRAWTEXT_OLD_TIMELINE (LIBAVFILTER_VERSION_MAJOR < 4)
|
||||
#endif
|
||||
#ifndef FF_API_NOCONST_GET_NAME
|
||||
#define FF_API_NOCONST_GET_NAME (LIBAVFILTER_VERSION_MAJOR < 4)
|
||||
#endif
|
||||
|
||||
#endif /* AVFILTER_VERSION_H */
|
||||
|
Loading…
Reference in New Issue
Block a user