Commit 654e2a02 authored by Víctor Manuel Jáquez Leal's avatar Víctor Manuel Jáquez Leal Committed by Jan Schmidt

h264parse: expose stereo-high profile

Exposing stereo-high profile as a compatible profile of multiview-high
if the maximum number of encoded views in the stream is two.

https://bugzilla.gnome.org/show_bug.cgi?id=743174
parent 4fc3db18
......@@ -1315,8 +1315,15 @@ get_compatible_profile_caps (GstH264SPS * sps)
}
break;
case GST_H264_PROFILE_MULTIVIEW_HIGH:
/* Fix: should add GST_H264_PROFILE_STEREO_HIGH as compatible
* profile if number of views == 2. */
if (sps->extension_type == GST_H264_NAL_EXTENSION_MVC
&& sps->extension.mvc.num_views_minus1 == 1) {
static const gchar *profile_array[] =
{ "stereo-high", "multiview-high", NULL };
profiles = profile_array;
} else {
static const gchar *profile_array[] = { "multiview-high", NULL };
profiles = profile_array;
}
break;
default:
break;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment