summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-01-09 09:49:24 +0000
committerCarl Hetherington <cth@carlh.net>2013-01-09 09:49:24 +0000
commit94b48aad7958be46e8294ed736baa53c86ce6b26 (patch)
tree13fdb16a9c17633f44104c292b85caba06f9e71a /wscript
parent8a6d700346a6f5ca320883ea1e4d628b80f3b8fd (diff)
Try to allow builds with 0.10.4-era ffmpeg.
Diffstat (limited to 'wscript')
-rw-r--r--wscript20
1 files changed, 20 insertions, 0 deletions
diff --git a/wscript b/wscript
index 49505836a..c8fdc4977 100644
--- a/wscript
+++ b/wscript
@@ -151,6 +151,26 @@ def configure(conf):
define_name = 'HAVE_G_FORMAT_SIZE',
mandatory = False)
+ conf.check_cc(fragment = """
+ extern "C" {
+ #include <libavutil/avutil.h>
+ }
+ int main() { AVPixelFormat f; }
+ """, msg = 'Checking for AVPixelFormat',
+ uselib = 'AVUTIL',
+ define_name = 'HAVE_AV_PIXEL_FORMAT',
+ mandatory = False)
+
+ conf.check_cc(fragment = """
+ extern "C" {
+ #include <libavcodec/avcodec.h>
+ }
+ int main() { AVFrame* f; av_frame_get_best_effort_timestamp(f); }
+ """, msg = 'Checking for av_frame_get_best_effort_timestamp',
+ uselib = 'AVCODEC',
+ define_name = 'HAVE_AV_FRAME_GET_BEST_EFFORT_TIMESTAMP',
+ mandatory = False)
+
conf.recurse('src')
conf.recurse('test')