diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-01-09 23:59:20 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-01-09 23:59:20 +0000 |
| commit | bf596f1dca9c2b08e6208d78ebd6e4e284ca2d9e (patch) | |
| tree | aba1637f8285cb419ae4a38c7c6b2f01c0dccdd7 | |
| parent | c4cce451a4234e3e41865d7dc5073ed3ad061e3c (diff) | |
ffmpeg 0.10.4 seems not to need a buffersrc.h include.
| -rw-r--r-- | src/lib/filter_graph.cc | 2 | ||||
| -rw-r--r-- | wscript | 10 |
2 files changed, 12 insertions, 0 deletions
diff --git a/src/lib/filter_graph.cc b/src/lib/filter_graph.cc index 17107a05b..376ab404f 100644 --- a/src/lib/filter_graph.cc +++ b/src/lib/filter_graph.cc @@ -23,7 +23,9 @@ extern "C" { #include <libavfilter/avfiltergraph.h> +#ifdef HAVE_BUFFERSRC_H #include <libavfilter/buffersrc.h> +#endif #if (LIBAVFILTER_VERSION_MAJOR == 2 && LIBAVFILTER_VERSION_MINOR >= 53 && LIBAVFILTER_VERSION_MINOR <= 77) || LIBAVFILTER_VERSION_MAJOR == 3 #include <libavfilter/avcodec.h> #include <libavfilter/buffersink.h> @@ -171,6 +171,16 @@ def configure(conf): define_name = 'HAVE_AV_FRAME_GET_BEST_EFFORT_TIMESTAMP', mandatory = False) + conf.check_cc(fragment = """ + extern "C" { + #include <libavfilter/buffersrc.h> + } + int main() { } + """, msg = 'Checking for buffersrc.h', + uselib = 'AVCODEC', + define_name = 'HAVE_BUFFERSRC_H', + mandatory = False) + conf.recurse('src') conf.recurse('test') |
