Lines Matching defs:seq
233 static void rtp_init_sequence(RTPStatistics *s, uint16_t seq)
235 s->max_seq = seq;
237 s->base_seq = seq - 1;
247 static int rtp_valid_packet_in_sequence(RTPStatistics *s, uint16_t seq)
249 uint16_t udelta = seq - s->max_seq;
255 * seq. numbers have been received */
257 if (seq == s->max_seq + 1) {
259 s->max_seq = seq;
261 rtp_init_sequence(s, seq);
267 s->max_seq = seq;
271 if (seq < s->max_seq) {
275 s->max_seq = seq;
278 if (seq == s->bad_seq) {
281 rtp_init_sequence(s, seq);
283 s->bad_seq = (seq + 1) & (RTP_SEQ_MOD - 1);
442 uint16_t next_seq = s->seq + 1;
445 if (!pkt || pkt->seq == next_seq)
452 int16_t diff = pkt->seq - missing_seq;
459 if (pkt->seq == missing_seq)
701 int payload_type, seq, flags = 0;
712 seq = AV_RB16(buf + 2);
724 if (!rtp_valid_packet_in_sequence(&s->statistics, seq)) {
727 payload_type, seq, ((s->seq + 1) & 0xffff));
737 s->seq = seq;
763 s->st, pkt, ×tamp, buf, len, seq,
788 s->seq = 0;
795 uint16_t seq = AV_RB16(buf + 2);
800 int16_t diff = seq - (*cur)->seq;
810 packet->seq = seq;
822 return s->queue && s->queue->seq == (uint16_t) (s->seq + 1);
839 int pkt_missed = s->queue->seq - s->seq - 1;
903 if ((s->seq == 0 && !s->queue) || s->queue_size <= 1) {
907 uint16_t seq = AV_RB16(buf + 2);
908 int16_t diff = seq - s->seq;