mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-22 23:28:16 +00:00
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:
parent
64ea751cd2
commit
a9ae00a2c1
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue