From a9ae00a2c14e6d5a1a754c6c9bea0df49c748a5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Mon, 16 Nov 2020 16:29:46 +0100 Subject: va: h264dec: admit baseline if stream obeys A.2 Part-of: --- sys/va/gstvah264dec.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys') 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; } -- cgit v1.2.1