summaryrefslogtreecommitdiff
path: root/ext/openh264
diff options
context:
space:
mode:
authorJan Schmidt <jan@centricular.com>2019-01-30 14:38:20 +1100
committerJan Schmidt <jan@centricular.com>2019-01-30 14:43:22 +1100
commite75e6375310d9985f821f9e495384d7fb990a147 (patch)
tree8b4538ac05a77c2fe60804ac4d67e57c404241fb /ext/openh264
parent984b150e65c9a9d2f4b34cfc59c3083c4b9d1196 (diff)
downloadgstreamer-plugins-bad-e75e6375310d9985f821f9e495384d7fb990a147.tar.gz
Add OpenH264 version check macro
Diffstat (limited to 'ext/openh264')
-rw-r--r--ext/openh264/gstopenh264dec.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/openh264/gstopenh264dec.cpp b/ext/openh264/gstopenh264dec.cpp
index f82231a45..303ce87dd 100644
--- a/ext/openh264/gstopenh264dec.cpp
+++ b/ext/openh264/gstopenh264dec.cpp
@@ -28,6 +28,10 @@
#endif
#include "gstopenh264dec.h"
+
+#include <wels/codec_ver.h>
+#define OPENH264_VERSION_CHECK(maj,min) ((OPENH264_MAJOR > (maj)) || (OPENH264_MAJOR == (maj) && OPENH264_MINOR >= (min)))
+
#include <gst/gst.h>
#include <gst/video/video.h>
#include <gst/video/gstvideodecoder.h>