From: Jan Schmidt Date: Mon, 27 Feb 2017 11:41:47 +0000 (+1100) Subject: openh264: Conditionally support the main and high profiles X-Git-Tag: 1.16.2~284 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=19382f1e9138220a64ca0f37bd076ed1fddacaa7;p=platform%2Fupstream%2Fgst-plugins-bad.git openh264: Conditionally support the main and high profiles openh264 added main/high profile support upstream after the 1.8.0 release, so detect a version higher than that and support main/high stream input --- diff --git a/ext/openh264/gstopenh264dec.cpp b/ext/openh264/gstopenh264dec.cpp index aafccf0e4..a8a3f90b3 100644 --- a/ext/openh264/gstopenh264dec.cpp +++ b/ext/openh264/gstopenh264dec.cpp @@ -37,6 +37,12 @@ #include #include /* for memcpy */ +#if OPENH264_VERSION_CHECK (1,9) +#define HAVE_OPENH264_MAIN_PROFILE 1 +#else +#define HAVE_OPENH264_MAIN_PROFILE 0 +#endif + GST_DEBUG_CATEGORY_STATIC (gst_openh264dec_debug_category); #define GST_CAT_DEFAULT gst_openh264dec_debug_category @@ -62,7 +68,12 @@ GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_ALWAYS, GST_STATIC_CAPS ("video/x-h264, stream-format=(string)byte-stream, alignment=(string)au, " - "profile=(string){ constrained-baseline, baseline}")); +#if HAVE_OPENH264_MAIN_PROFILE + "profile=(string){ constrained-baseline, baseline, main, high }" +#else + "profile=(string){ constrained-baseline, baseline }" +#endif + )); static GstStaticPadTemplate gst_openh264dec_src_template = GST_STATIC_PAD_TEMPLATE ("src",