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
This commit is contained in:
Víctor Manuel Jáquez Leal 2015-01-16 19:32:15 +01:00 committed by Jan Schmidt
parent 4fc3db1808
commit 654e2a0298

View file

@ -1315,8 +1315,15 @@ get_compatible_profile_caps (GstH264SPS * sps)
} }
break; break;
case GST_H264_PROFILE_MULTIVIEW_HIGH: case GST_H264_PROFILE_MULTIVIEW_HIGH:
/* Fix: should add GST_H264_PROFILE_STEREO_HIGH as compatible if (sps->extension_type == GST_H264_NAL_EXTENSION_MVC
* profile if number of views == 2. */ && 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; break;
default: default:
break; break;