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