12 #ifndef ROC_RTP_VALIDATOR_H_
13 #define ROC_RTP_VALIDATOR_H_
61 bool has_prev_packet_;
#define ROC_ATTR_NODISCARD
Emit warning if function result is not checked.
Sample specification. Describes sample rate and channels.
Base class for non-copyable objects.
virtual ROC_ATTR_NODISCARD status::StatusCode read(packet::PacketPtr &pp)
Read next packet.
Validator(packet::IReader &reader, const ValidatorConfig &config, const audio::SampleSpec &sample_spec)
Initialize.
const nanoseconds_t Second
One second represented in nanoseconds.
int64_t nanoseconds_t
Nanoseconds.
core::nanoseconds_t max_ts_jump
Maximum allowed delta between two consecutive packet timestamps, in nanoseconds.
size_t max_sn_jump
Maximum allowed delta between two consecutive packet seqnums.