From 20a8be7f68e1edb14cf0fe943cc670710b0d7da6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Fri, 11 Sep 2015 16:35:30 +0200 Subject: build: verify for H264 MVC and H265 SPS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Currently the H264 and H265 parsers look for MVC and SPS respectively, and the required symbols for those were added in GStreamer 1.5 If we try to compile in GStreamer < 1.4, without enabling the builtin codec parsers, the compilation fails, because the lack of those symbols. This patch verifies if the installed H264 and H265 parsers have those symbols. If they do not, the specific built in codec parsers are enabled and used. Signed-off-by: Víctor Manuel Jáquez Leal https://bugzilla.gnome.org/show_bug.cgi?id=754845 --- configure.ac | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 24014d42..7c5c8c17 100644 --- a/configure.ac +++ b/configure.ac @@ -320,7 +320,11 @@ AC_CACHE_CHECK([for H.264 parser], GstH264Profile profile = GST_H264_PROFILE_HIGH; slice_hdr.n_emulation_prevention_bytes = 0; vui_params.par_n = 0; - vui_params.par_d = 0;]])], + vui_params.par_d = 0; + GstH264SPS sps; + sps.extension.mvc.num_views_minus1 = 1; + GstH264NalUnit nalu; + nalu.extension_type = GST_H264_NAL_EXTENSION_MVC;]])], [ac_cv_have_gst_h264_parser="yes"], [ac_cv_have_gst_h264_parser="no"] ) @@ -389,7 +393,10 @@ AC_CACHE_CHECK([for H.265 parser], GstH265Profile profile = GST_H265_PROFILE_MAIN_STILL_PICTURE; slice_hdr.n_emulation_prevention_bytes = 0; vui_params.par_n = 0; - vui_params.par_d = 0;]])], + vui_params.par_d = 0; + GstH265SPS sps; + sps.crop_rect_x = 0; + sps.crop_rect_width = 0;]])], [ac_cv_have_gst_h265_parser="yes"], [ac_cv_have_gst_h265_parser="no"] ) -- cgit v1.2.1