summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2020-11-16 16:29:46 +0100
committerSeungha Yang <seungha@centricular.com>2020-11-17 19:57:35 +0900
commita9ae00a2c14e6d5a1a754c6c9bea0df49c748a5c (patch)
tree7018fd8444d539b43f90d8e03b2c42ff55268212 /sys
parent64ea751cd2159f93112377d22d06f80d1bb7919f (diff)
downloadgstreamer-plugins-bad-a9ae00a2c14e6d5a1a754c6c9bea0df49c748a5c.tar.gz
va: h264dec: admit baseline if stream obeys A.2
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1812>
Diffstat (limited to 'sys')
-rw-r--r--sys/va/gstvah264dec.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/va/gstvah264dec.c b/sys/va/gstvah264dec.c
index c2d5388a0..1ea00e983 100644
--- a/sys/va/gstvah264dec.c
+++ b/sys/va/gstvah264dec.c
@@ -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;
}