7 #ifndef PACKAGER_MEDIA_FORMATS_MP2T_PROGRAM_MAP_TABLE_WRITER_H_
8 #define PACKAGER_MEDIA_FORMATS_MP2T_PROGRAM_MAP_TABLE_WRITER_H_
13 #include <packager/media/base/buffer_writer.h>
15 #include <packager/media/base/stream_info.h>
16 #include <packager/media/formats/mp2t/continuity_counter.h>
41 static const uint8_t kPmtPid = 0x20;
44 static const uint8_t kElementaryPid = 0x50;
48 Codec
codec()
const {
return codec_; }
55 virtual bool WriteDescriptors(
BufferWriter* writer)
const = 0;
74 bool WriteDescriptors(
BufferWriter* writer)
const override;
81 const std::vector<uint8_t>& audio_specific_config);
90 bool WriteDescriptors(
BufferWriter* descriptors)
const override;
92 const std::vector<uint8_t> audio_specific_config_;
All the methods that are virtual are virtual for mocking.