Add OpenH264 version check macro
authorJan Schmidt <jan@centricular.com>
Wed, 30 Jan 2019 03:38:20 +0000 (14:38 +1100)
committerJan Schmidt <jan@centricular.com>
Wed, 30 Jan 2019 03:43:22 +0000 (14:43 +1100)
ext/openh264/gstopenh264dec.cpp

index f82231a45ae43fdbb154e87f0fef9dce56c59c1a..303ce87ddf9b6a09138040e905bacb56f38e2d78 100644 (file)
 #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>