diff mbox

[FFmpeg-devel,9/9] lavfi: schedule avfilterlink.h for separate inclusion.

Message ID 20161227180210.23100-9-george@nsup.org
State New
Headers show

Commit Message

Nicolas George Dec. 27, 2016, 6:02 p.m. UTC
TODO APIChanges entry.

Signed-off-by: Nicolas George <george@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 mbox

Patch

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 */