3 #include "../mp4/mp4ids.h" 5 #include "../exceptions.h" 25 m_istream->seekg(-128, ios_base::end);
26 if (m_reader.readUInt24BE() == 0x544147) {
27 m_size =
static_cast<uint64
>(m_istream->tellg()) - 3u - m_startOffset;
29 m_size =
static_cast<uint64
>(m_istream->tellg()) + 125u - m_startOffset;
31 m_istream->seekg(m_startOffset, ios_base::beg);
33 m_firstFrame.parseHeader(m_reader);
36 byte sampleRateIndex = m_firstFrame.mpeg4SamplingFrequencyIndex();
TAG_PARSER_EXPORT byte channelCount(byte config)
Returns the channel count for the specified MPEG-4 channel config.
TAG_PARSER_EXPORT MediaFormat idToMediaFormat(byte mpeg4AudioObjectId, bool sbrPresent=false, bool psPresent=false)
uint32 mpeg4SamplingFrequencyTable[13]