pub fn codec_utils_aac_caps_set_level_and_profile(
caps: &mut CapsRef,
audio_config: &[u8],
) -> Result<(), BoolError>
Expand description
Sets the level and profile on caps
if it can be determined from
audio_config
. See codec_utils_aac_get_level()
and
codec_utils_aac_get_profile()
for more details on the parameters.
caps
must be audio/mpeg caps with an “mpegversion” field of either 2 or 4.
If mpegversion is 4, the “base-profile” field is also set in caps
.
§caps
the gst::Caps
to which level and profile fields are to be added
§audio_config
a pointer to the AudioSpecificConfig as specified in the Elementary Stream Descriptor (esds) in ISO/IEC 14496-1. (See below for more details)
§Returns
true
if the level and profile could be set, false
otherwise.