libs: dec: h265: fix the macros used for IDC profile

profile_idc flag in SPS only indicate the IDC profile, which may
need some other flags together to get the real profile.

https://bugzilla.gnome.org/show_bug.cgi?id=797160
This commit is contained in:
Wangfei 2018-09-19 10:16:36 +08:00 committed by Víctor Manuel Jáquez Leal
parent 7b077cdcb9
commit f4f935b6f4

View file

@ -137,13 +137,13 @@ gst_vaapi_utils_h265_get_profile (guint8 profile_idc)
GstVaapiProfile profile;
switch (profile_idc) {
case GST_H265_PROFILE_MAIN:
case GST_H265_PROFILE_IDC_MAIN:
profile = GST_VAAPI_PROFILE_H265_MAIN;
break;
case GST_H265_PROFILE_MAIN_10:
case GST_H265_PROFILE_IDC_MAIN_10:
profile = GST_VAAPI_PROFILE_H265_MAIN10;
break;
case GST_H265_PROFILE_MAIN_STILL_PICTURE:
case GST_H265_PROFILE_IDC_MAIN_STILL_PICTURE:
profile = GST_VAAPI_PROFILE_H265_MAIN_STILL_PICTURE;
break;
default: