mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 08:41:07 +00:00
build: verify for H264 MVC and H265 SPS
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
This commit is contained in:
parent
f6ae00a6bb
commit
ccc9ce7101
1 changed files with 9 additions and 2 deletions
11
configure.ac
11
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"]
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue