inline void operator +=(double t) { if (hasDts()) m_dts += t; if (hasPts()) m_pts += t; }
void QtsPesPacket::setPts(const quint64& pts) { if (hasPts()) { qtsPutPtsDts(_data.data() + 9, pts); } }
quint64 QtsPesPacket::getPts() const { return hasPts() ? qtsGetPtsDts(_data.data() + 9) : 0; }
inline bool isValid() const { return hasDts() || hasPts(); }