From ae5026c90502fad71338b81badd227db00b462cf Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Sat, 8 Aug 2020 00:37:46 +0200 Subject: avfilter/formats: Schedule avfilter_make_format64_list() for removal Despite its name, this function is not part of the public API, as formats.h, the header containing its declaration, is a private header. The formats API was once public API, but that changed long ago (b74a1da49db5ebed51aceae6cacc2329288a92c1, the commit scheduling it to become private, is from 2012). That avfilter_make_format64_list() was forgotten is probably a result of the confusion resulting from the libav-ffmpeg split. Signed-off-by: Andreas Rheinhardt --- libavfilter/formats.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'libavfilter/formats.h') diff --git a/libavfilter/formats.h b/libavfilter/formats.h index 708bee3ee8..ffe7a12d53 100644 --- a/libavfilter/formats.h +++ b/libavfilter/formats.h @@ -20,6 +20,7 @@ #define AVFILTER_FORMATS_H #include "avfilter.h" +#include "version.h" /** * A list of supported formats for one end of a filter link. This is used @@ -139,8 +140,11 @@ av_warn_unused_result AVFilterChannelLayouts *ff_all_channel_counts(void); av_warn_unused_result -AVFilterChannelLayouts *avfilter_make_format64_list(const int64_t *fmts); +AVFilterChannelLayouts *ff_make_format64_list(const int64_t *fmts); +#if LIBAVFILTER_VERSION_MAJOR < 8 +AVFilterChannelLayouts *avfilter_make_format64_list(const int64_t *fmts); +#endif /** * A helper for query_formats() which sets all links to the same list of channel -- cgit v1.2.3