You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-30 22:24:04 +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:
@ -457,6 +457,9 @@ int avfilter_process_command(AVFilterContext *filter, const char *cmd, const cha
|
|||||||
|
|
||||||
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)
|
||||||
{
|
{
|
||||||
const AVFilter *f = NULL;
|
const AVFilter *f = NULL;
|
||||||
|
@ -991,6 +991,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);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -85,5 +85,8 @@
|
|||||||
#ifndef FF_API_DRAWTEXT_OLD_TIMELINE
|
#ifndef FF_API_DRAWTEXT_OLD_TIMELINE
|
||||||
#define FF_API_DRAWTEXT_OLD_TIMELINE (LIBAVFILTER_VERSION_MAJOR < 4)
|
#define FF_API_DRAWTEXT_OLD_TIMELINE (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 */
|
||||||
|
Reference in New Issue
Block a user