5 #ifndef PACKAGER_MEDIA_FORMATS_MP2T_TS_SECTION_PES_H_
6 #define PACKAGER_MEDIA_FORMATS_MP2T_TS_SECTION_PES_H_
10 #include "packager/base/compiler_specific.h"
11 #include "packager/media/base/byte_queue.h"
12 #include "packager/media/formats/mp2t/ts_section.h"
22 explicit TsSectionPes(std::unique_ptr<EsParser> es_parser);
26 bool Parse(
bool payload_unit_start_indicator,
29 bool Flush()
override;
30 void Reset()
override;
37 bool Emit(
bool emit_for_unknown_size);
40 bool ParseInternal(
const uint8_t* raw_pes,
int raw_pes_size);
48 std::unique_ptr<EsParser> es_parser_;
54 bool previous_pts_valid_;
55 int64_t previous_pts_;
56 bool previous_dts_valid_;
57 int64_t previous_dts_;