7 #ifndef PACKAGER_MEDIA_FORMATS_MP2T_ADTS_HEADER_H_ 8 #define PACKAGER_MEDIA_FORMATS_MP2T_ADTS_HEADER_H_ 14 #include "packager/media/formats/mp2t/audio_header.h" 29 bool IsSyncWord(
const uint8_t* buf)
const override;
32 bool Parse(
const uint8_t* adts_frame,
size_t adts_frame_size)
override;
45 uint8_t protection_absent_ = 0;
46 uint16_t frame_size_ = 0;
48 uint8_t sampling_frequency_index_ = 0;
49 uint8_t channel_configuration_ = 0;
56 #endif // PACKAGER_MEDIA_FORMATS_MP2T_ADTS_HEADER_H_
All the methods that are virtual are virtual for mocking.