[FFmpeg-devel] [PATCH 9/9] lavfi: schedule avfilterlink.h for separate inclusion.
Nicolas George
george at nsup.org
Tue Dec 27 20:02:10 EET 2016
TODO APIChanges entry.
Signed-off-by: Nicolas George <george at nsup.org>
---
libavfilter/avfilter.h | 2 ++
libavfilter/version.h | 4 ++++
2 files changed, 6 insertions(+)
Once again, I am not the one who wants AVFilterLink private. Patches 1-5 are
worthy in their own right; for the others I will let people discuss it and
push if I am told to push.
diff --git a/libavfilter/avfilter.h b/libavfilter/avfilter.h
index f219e2ad34..a3472547ea 100644
--- a/libavfilter/avfilter.h
+++ b/libavfilter/avfilter.h
@@ -377,7 +377,9 @@ struct AVFilterContext {
unsigned ready;
};
+#if FF_API_AVFILTERLINK_PUBLIC
#include "avfilterlink.h"
+#endif
/**
* Link two filters together.
diff --git a/libavfilter/version.h b/libavfilter/version.h
index e3bd8d0084..89b5f047ab 100644
--- a/libavfilter/version.h
+++ b/libavfilter/version.h
@@ -67,5 +67,9 @@
#ifndef FF_API_NOCONST_GET_NAME
#define FF_API_NOCONST_GET_NAME (LIBAVFILTER_VERSION_MAJOR < 7)
#endif
+#ifndef FF_API_AVFILTERLINK_PUBLIC
+#define FF_API_AVFILTERLINK_PUBLIC (LIBAVFILTER_VERSION_MAJOR < 8)
+#endif
+
#endif /* AVFILTER_VERSION_H */
--
2.11.0
More information about the ffmpeg-devel
mailing list