pjsip / pjproject

PJSIP project
http://www.pjsip.org
GNU General Public License v2.0
2.07k stars 786 forks source link

pcaputil writes huge output when timestamp is skewed #4139

Closed orgads closed 2 weeks ago

orgads commented 2 weeks ago

Describe the bug

I have a pcap file in which the timestamp in one packet is less than the previous one. On this case, ts_gap is huge, and the util can write gigabytes of output.

image

Steps to reproduce

With this pcap file, run:

pcaputil --codec=PCMA/8000/1 bad.pcap bad.wav

pcaputil now takes 100% CPU and writes an infinite output file until aborted.

PJSIP version

master

Context

N/A

Log, call stack, etc

N/A