summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorBrendan Long <b.long@cablelabs.com>2013-12-23 12:23:27 -0600
committerSebastian Dröge <sebastian@centricular.com>2013-12-23 19:31:25 +0100
commitc0852624f7591d19cd44013e729e49f24473b12d (patch)
tree60de549c8b92f9ddf74c5fb3c04fc7d2f29092af /configure.ac
parent4baf8080f2cbd2b6cebdefd4f6d723c762dc1ef9 (diff)
vp9dec: Require vpx >= 1.3.0 for building vp9dec and vp9enc
Previous versions did not have a stable bitstream for VP9. https://bugzilla.gnome.org/show_bug.cgi?id=720986
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac19
1 files changed, 11 insertions, 8 deletions
diff --git a/configure.ac b/configure.ac
index 58bb7ce34..3cb5109f7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -960,14 +960,17 @@ AG_GST_CHECK_FEATURE(VPX, [VPX decoder], vpx, [
HAVE_VP8=yes
AC_DEFINE(HAVE_VP8_DECODER, 1, [Defined if the VP8 decoder is available])
])
- AC_CHECK_LIB(vpx, vpx_codec_vp9_cx_algo, [
- HAVE_VP9=yes
- AC_DEFINE(HAVE_VP9_ENCODER, 1, [Defined if the VP9 encoder is available])
- ])
- AC_CHECK_LIB(vpx, vpx_codec_vp9_dx_algo, [
- HAVE_VP9=yes
- AC_DEFINE(HAVE_VP9_DECODER, 1, [Defined if the VP9 decoder is available])
- ])
+
+ PKG_CHECK_MODULES(VPX_130, vpx >= 1.3.0, [
+ AC_CHECK_LIB(vpx, vpx_codec_vp9_cx_algo, [
+ HAVE_VP9=yes
+ AC_DEFINE(HAVE_VP9_ENCODER, 1, [Defined if the VP9 encoder is available])
+ ])
+ AC_CHECK_LIB(vpx, vpx_codec_vp9_dx_algo, [
+ HAVE_VP9=yes
+ AC_DEFINE(HAVE_VP9_DECODER, 1, [Defined if the VP9 decoder is available])
+ ])
+ ], [true])
LIBS="$OLD_LIBS"
CFLAGS="$OLD_CFLAGS"
fi