[FFmpeg-devel] [PATCH 3/3] Include headers for optional libraries only when enabled.
Diego 'Flameeyes' Pettenò
flameeyes
Thu Oct 16 13:21:54 CEST 2008
Include the headers for libavfilter, libswscale and libpostproc when
they are enabled (and thus linked in).
Without this change, Sun Studio will fail to link FFmpeg since two
inline functions defined in avfilter.h will have undefined references
to non-inline libavfilter functions.
---
cmdutils.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/cmdutils.c b/cmdutils.c
index ae8a1dd..ccdd13a 100644
--- a/cmdutils.c
+++ b/cmdutils.c
@@ -26,10 +26,14 @@
#include "config.h"
#include "libavformat/avformat.h"
+#ifdef CONFIG_AVFILTER
#include "libavfilter/avfilter.h"
+#endif
#include "libavdevice/avdevice.h"
#include "libswscale/swscale.h"
+#ifdef CONFIG_POSTPROC
#include "libpostproc/postprocess.h"
+#endif
#include "libavutil/avstring.h"
#include "libavcodec/opt.h"
#include "cmdutils.h"
More information about the ffmpeg-devel
mailing list