lavfi: move some FF_API_ definitions from avfilter.h to version.h
version.h seems the right place for FF_API_ definitions.
This commit is contained in:
parent
5fd3e6965e
commit
a31ab50712
@ -29,14 +29,6 @@
|
|||||||
#include "libavutil/rational.h"
|
#include "libavutil/rational.h"
|
||||||
#include "libavcodec/avcodec.h"
|
#include "libavcodec/avcodec.h"
|
||||||
|
|
||||||
|
|
||||||
#ifndef FF_API_OLD_VSINK_API
|
|
||||||
#define FF_API_OLD_VSINK_API (LIBAVFILTER_VERSION_MAJOR < 3)
|
|
||||||
#endif
|
|
||||||
#ifndef FF_API_OLD_ALL_FORMATS_API
|
|
||||||
#define FF_API_OLD_ALL_FORMATS_API (LIBAVFILTER_VERSION_MAJOR < 3)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
|
||||||
#include "libavfilter/version.h"
|
#include "libavfilter/version.h"
|
||||||
|
@ -44,6 +44,12 @@
|
|||||||
* Those FF_API_* defines are not part of public API.
|
* Those FF_API_* defines are not part of public API.
|
||||||
* They may change, break or disappear at any time.
|
* They may change, break or disappear at any time.
|
||||||
*/
|
*/
|
||||||
|
#ifndef FF_API_OLD_VSINK_API
|
||||||
|
#define FF_API_OLD_VSINK_API (LIBAVFILTER_VERSION_MAJOR < 3)
|
||||||
|
#endif
|
||||||
|
#ifndef FF_API_OLD_ALL_FORMATS_API
|
||||||
|
#define FF_API_OLD_ALL_FORMATS_API (LIBAVFILTER_VERSION_MAJOR < 3)
|
||||||
|
#endif
|
||||||
#ifndef FF_API_GRAPH_AVCLASS
|
#ifndef FF_API_GRAPH_AVCLASS
|
||||||
#define FF_API_GRAPH_AVCLASS (LIBAVFILTER_VERSION_MAJOR > 2)
|
#define FF_API_GRAPH_AVCLASS (LIBAVFILTER_VERSION_MAJOR > 2)
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user