summaryrefslogtreecommitdiff
path: root/ext/vpx
diff options
context:
space:
mode:
authorJan Alexander Steffens (heftig) <jan.steffens@gmail.com>2019-02-05 22:14:18 +0100
committerTim-Philipp Müller <tim@centricular.com>2019-02-07 11:17:39 +0000
commitb6e6f1ae73375ef66a5748069843aaed1a83e6a6 (patch)
treee149dc9fe1e2003ddc4c6cffc855ac4e3e57e9ce /ext/vpx
parent062f2c46fa9ce2ad0ae69070fd15acef9a9da632 (diff)
downloadgstreamer-plugins-good-b6e6f1ae73375ef66a5748069843aaed1a83e6a6.tar.gz
vpx: Fix build against libvpx 1.8
The deprecated debug visualizer was removed.
Diffstat (limited to 'ext/vpx')
-rw-r--r--ext/vpx/gstvpxdec.c2
-rw-r--r--ext/vpx/meson.build4
2 files changed, 6 insertions, 0 deletions
diff --git a/ext/vpx/gstvpxdec.c b/ext/vpx/gstvpxdec.c
index c3f0f625f..da4322513 100644
--- a/ext/vpx/gstvpxdec.c
+++ b/ext/vpx/gstvpxdec.c
@@ -62,6 +62,7 @@ gst_vpx_dec_post_processing_flags_get_type (void)
{C_FLAGS (VP8_DEBLOCK), "Deblock", "deblock"},
{C_FLAGS (VP8_DEMACROBLOCK), "Demacroblock", "demacroblock"},
{C_FLAGS (VP8_ADDNOISE), "Add noise", "addnoise"},
+#ifndef HAVE_VPX_1_8
{C_FLAGS (VP8_DEBUG_TXT_FRAME_INFO),
"Print frame information",
"visualize-frame-info"},
@@ -74,6 +75,7 @@ gst_vpx_dec_post_processing_flags_get_type (void)
{C_FLAGS (VP8_DEBUG_TXT_RATE_INFO),
"Print video rate info",
"visualize-rate-info"},
+#endif
{C_FLAGS (VP8_MFQE), "Multi-frame quality enhancement", "mfqe"},
{0, NULL, NULL}
};
diff --git a/ext/vpx/meson.build b/ext/vpx/meson.build
index 6ed440728..0d2340b32 100644
--- a/ext/vpx/meson.build
+++ b/ext/vpx/meson.build
@@ -48,6 +48,10 @@ if vpx_dep.found()
vpx_args += '-DHAVE_VPX_1_4'
endif
+ if dependency('vpx', version : '>=1.8.0', required : false).found()
+ vpx_args += '-DHAVE_VPX_1_8'
+ endif
+
gstvpx = library('gstvpx',
vpx_sources,
c_args : gst_plugins_good_args + vpx_args,