3 #include "../mp4/mp4ids.h"
5 #include "../exceptions.h"
20 CPP_UTILITIES_UNUSED(diag)
27 m_istream->seekg(-128, ios_base::end);
28 if (m_reader.readUInt24BE() == 0x544147) {
29 m_size = static_cast<std::uint64_t>(m_istream->tellg()) - 3u - m_startOffset;
31 m_size = static_cast<std::uint64_t>(m_istream->tellg()) + 125u - m_startOffset;
33 m_istream->seekg(static_cast<streamoff>(m_startOffset), ios_base::beg);
35 m_firstFrame.parseHeader(m_reader);
38 std::uint8_t sampleRateIndex = m_firstFrame.mpeg4SamplingFrequencyIndex();