+ * gst_codec_utils_aac_get_profile:
+ * @audio_config: a pointer to the AudioSpecificConfig as specified in the
+ * Elementary Stream Descriptor (esds) in ISO/IEC 14496-1 (see
+ * below for a more details).
+ * @len: Length of @audio_config in bytes
+ *
+ * Returns the profile of the given AAC stream as a string. The profile is
+ * determined using the AudioObjectType field which is in the first 5 bits of
+ * @audio_config.
+ *
+ * <note>
+ * HE-AAC support has not yet been implemented.
+ * </note>
+ *
+ * Returns: The profile as a const string and NULL if the profile could not be
+ * determined.
+ */
+const gchar *
+gst_codec_utils_aac_get_profile (const guint8 * audio_config, guint len)
+{
+ guint profile;
+
+ if (len < 1)
+ return NULL;
+
+ profile = audio_config[0] >> 3;
+ switch (profile) {
+ case 1:
+ return "main";
+ case 2:
+ return "lc";
+ case 3:
+ return "ssr";
+ case 4:
+ return "ltp";
+ default:
+ break;
+ }
+
+ GST_DEBUG ("Invalid profile idx: %u", profile);
+ return NULL;
+}
+
+/**