Commit 43a04483 authored by Committed by Tim-Philipp MüllerBrowse files
typefinding: add AAC level to ADTS caps
This adds code to calculate the level for a given AAC stream and export it in the stream caps. For AAC LC streams, the level is calculated according to the definition under the AAC Profile. For other streams, the definition under the Main Profile is used. HE-AAC support is still to be done, and is dependent on detecting the presence of SBR and PS in the stream. Level is added as a field of type string because that's the way it's done in H.264 caps as well. There are only a few possible levels, so not using a numerical type is not too painful in this case, and consistency is nice. Fixes #613589.