FreeCalypso > hg > gsm-codec-lib
comparison pcap/rtp-g711-extr.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 | 9bd01faadaed |
children |
comparison
equal
deleted
inserted
replaced
206:1b8cb3490d48 | 207:10f11a2d4042 |
---|---|
69 fprintf(stderr, | 69 fprintf(stderr, |
70 "error in packet #%u: SSRC change from 0x%08X to 0x%08X\n", | 70 "error in packet #%u: SSRC change from 0x%08X to 0x%08X\n", |
71 pkt_idx, stream_ssrc, cur_ssrc); | 71 pkt_idx, stream_ssrc, cur_ssrc); |
72 exit(1); | 72 exit(1); |
73 } | 73 } |
74 if (cur_seq != last_seq + 1) { | 74 if (cur_seq != last_seq + 1 && |
75 (cur_seq != 0 || last_seq != 0xFFFF)) { | |
75 fprintf(stderr, | 76 fprintf(stderr, |
76 "error in packet #%u: seq break from 0x%04X to 0x%04X\n", | 77 "error in packet #%u: seq break from 0x%04X to 0x%04X\n", |
77 pkt_idx, last_seq, cur_seq); | 78 pkt_idx, last_seq, cur_seq); |
78 exit(1); | 79 exit(1); |
79 } | 80 } |