FreeCalypso > hg > gsm-codec-lib
comparison pcap/rtp-cont-check.c @ 207:10f11a2d4042
pcap utils: fix bug in the case of RTP timestamp 16-bit rollover
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 17 Feb 2023 19:56:45 +0000 |
parents | 693a0958a303 |
children |
comparison
equal
deleted
inserted
replaced
206:1b8cb3490d48 | 207:10f11a2d4042 |
---|---|
78 fprintf(stderr, | 78 fprintf(stderr, |
79 "error in packet #%u: SSRC change from 0x%08X to 0x%08X\n", | 79 "error in packet #%u: SSRC change from 0x%08X to 0x%08X\n", |
80 pkt_idx, stream_ssrc, cur_ssrc); | 80 pkt_idx, stream_ssrc, cur_ssrc); |
81 exit(1); | 81 exit(1); |
82 } | 82 } |
83 if (cur_seq != last_seq + 1) { | 83 if (cur_seq != last_seq + 1 && |
84 (cur_seq != 0 || last_seq != 0xFFFF)) { | |
84 fprintf(stderr, | 85 fprintf(stderr, |
85 "error in packet #%u: seq break from 0x%04X to 0x%04X\n", | 86 "error in packet #%u: seq break from 0x%04X to 0x%04X\n", |
86 pkt_idx, last_seq, cur_seq); | 87 pkt_idx, last_seq, cur_seq); |
87 exit(1); | 88 exit(1); |
88 } | 89 } |