GNOME Bugzilla – Bug 661400
rtpg722pay: G722 rtptime too fast
Last modified: 2011-10-10 21:49:40 UTC
Created attachment 198729 [details] [review] proposed patch G722 has a samplerate of 16Khz, but due to hystorical errors the rtp clockrate is only 8khz. This needs to be taken into account when converting from bytes to time and the other way around.
Review of attachment 198729 [details] [review]: ++ on the patch, but what about the depayloader? is it correct ? does enc ! pay ! depay ! dec work ?
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.
commit bf65acf11fd107376e5591e24f0d93de05057fab Author: Sjoerd Simons <sjoerd.simons@collabora.co.uk> Date: Mon Oct 10 19:01:23 2011 +0100 gstrtpg722pay: Compensate for clockrate vs. samplerate difference The RTP clock-rate used for G722 is 8000, even though the samplerate is 16000. Compensate for this by pretending G722 has 8 bits per sample instead of the 4 bits as if it were a codec that ran at half the speed, but with twice the number of bits. Fixes #661376