build: verify for H264 MVC and H265 SPS
authorVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Fri, 11 Sep 2015 14:35:30 +0000 (16:35 +0200)
committerVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Tue, 15 Sep 2015 17:36:37 +0000 (19:36 +0200)
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 <victorx.jaquez@intel.com>
https://bugzilla.gnome.org/show_bug.cgi?id=754845

configure.ac

index f918dda..acf5600 100644 (file)
@@ -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"]
     )