Add OpenH264 version check macro

This commit is contained in:
Jan Schmidt 2019-01-30 14:38:20 +11:00
parent 984b150e65
commit e75e637531

View file

@ -28,6 +28,10 @@
#endif #endif
#include "gstopenh264dec.h" #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/gst.h>
#include <gst/video/video.h> #include <gst/video/video.h>
#include <gst/video/gstvideodecoder.h> #include <gst/video/gstvideodecoder.h>