mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-04 07:09:56 +00:00
libs: dec: h265: Fix profile_idc mapping.
The old mapping values return by gst_vaapi_utils_h265_get_profile_idc is wrong, though GST_H265_PROFILE_IDC_MAIN and GST_H265_PROFILE_IDC_MAIN_10 happened to be the correct value. We only support Annex A profile_idc (1-4).
This commit is contained in:
parent
a6dfb6e5be
commit
3b5c7aa688
1 changed files with 5 additions and 6 deletions
|
@ -200,19 +200,18 @@ gst_vaapi_utils_h265_get_profile_idc (GstVaapiProfile profile)
|
|||
|
||||
switch (profile) {
|
||||
case GST_VAAPI_PROFILE_H265_MAIN:
|
||||
profile_idc = GST_H265_PROFILE_MAIN;
|
||||
profile_idc = GST_H265_PROFILE_IDC_MAIN;
|
||||
break;
|
||||
case GST_VAAPI_PROFILE_H265_MAIN10:
|
||||
profile_idc = GST_H265_PROFILE_MAIN_10;
|
||||
profile_idc = GST_H265_PROFILE_IDC_MAIN_10;
|
||||
break;
|
||||
case GST_VAAPI_PROFILE_H265_MAIN_STILL_PICTURE:
|
||||
profile_idc = GST_H265_PROFILE_MAIN_STILL_PICTURE;
|
||||
profile_idc = GST_H265_PROFILE_IDC_MAIN_STILL_PICTURE;
|
||||
break;
|
||||
case GST_VAAPI_PROFILE_H265_MAIN_422_10:
|
||||
profile_idc = GST_H265_PROFILE_MAIN_422_10;
|
||||
break;
|
||||
/* Fall through */
|
||||
case GST_VAAPI_PROFILE_H265_MAIN_444:
|
||||
profile_idc = GST_H265_PROFILE_MAIN_444;
|
||||
profile_idc = GST_H265_PROFILE_IDC_FORMAT_RANGE_EXTENSION;
|
||||
break;
|
||||
default:
|
||||
GST_DEBUG ("unsupported GstVaapiProfile value");
|
||||
|
|
Loading…
Reference in a new issue