libs: dec: h265: fix the macros used for IDC profile
authorWangfei <fei.w.wang@intel.com>
Wed, 19 Sep 2018 02:16:36 +0000 (10:16 +0800)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Tue, 18 Sep 2018 11:16:43 +0000 (13:16 +0200)
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

gst-libs/gst/vaapi/gstvaapiutils_h265.c

index 24199b9..ef43b3c 100644 (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: