7 #ifndef PACKAGER_MEDIA_FORMATS_MP2T_PES_PACKET_H_
8 #define PACKAGER_MEDIA_FORMATS_MP2T_PES_PACKET_H_
13 #include "packager/base/macros.h"
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_; }
49 const std::vector<uint8_t>& data()
const {
return data_; }
54 uint8_t stream_id_ = 0;
60 std::vector<uint8_t> data_;
69 #endif // PACKAGER_MEDIA_FORMATS_MP2T_PES_PACKET_H_