va: h264dec: admit baseline if stream obeys A.2

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1812>
This commit is contained in:
Víctor Manuel Jáquez Leal 2020-11-16 16:29:46 +01:00 committed by Seungha Yang
parent 64ea751cd2
commit a9ae00a2c1

View file

@ -571,7 +571,9 @@ _get_profile (GstVaH264Dec * self, const GstH264SPS * sps, gint max_dpb_size)
switch (sps->profile_idc) {
case GST_H264_PROFILE_BASELINE:
if (sps->constraint_set1_flag) { /* A.2.2 (main profile) */
/* A.2 compliant */
if (sps->constraint_set0_flag || sps->constraint_set1_flag
|| sps->constraint_set2_flag) {
profiles[i++] = VAProfileH264ConstrainedBaseline;
profiles[i++] = VAProfileH264Main;
}