7 #ifndef PACKAGER_MEDIA_FORMATS_MP2T_PES_PACKET_H_
8 #define PACKAGER_MEDIA_FORMATS_MP2T_PES_PACKET_H_
13 #include "packager/base/macros.h"
15 namespace edash_packager {
31 bool has_dts()
const {
return dts_ >= 0; }
33 bool has_pts()
const {
return pts_ >= 0; }
36 int64_t
dts()
const {
return dts_; }
43 int64_t
pts()
const {
return pts_; }
57 const std::vector<uint8_t>&
data()
const {
return data_; }
62 uint8_t stream_id_ = 0;
68 int64_t duration_ = 0;
70 std::vector<uint8_t> data_;
79 #endif // PACKAGER_MEDIA_FORMATS_MP2T_PES_PACKET_H_