[Freeswitch-svn] [commit] r2523 - freeswitch/trunk/src/mod/codecs/mod_g722

Freeswitch SVN brian at freeswitch.org
Tue Sep 5 18:21:14 EDT 2006


Author: brian
Date: Tue Sep  5 18:21:14 2006
New Revision: 2523

Modified:
   freeswitch/trunk/src/mod/codecs/mod_g722/mod_g722.c

Log:
RTP profile for audio and video conferences with minimal control.
This memorandum is a revision of RFC 1890 in preparation for advancement
from Proposed Standard to Draft Standard status. Readers are encouraged to
use the PostScript form of this draft to see where changes from RFC 1890 are
marked by change bars.

"G722 is specified in ITU-T Recommendation G.722, "7 kHz audio-coding within
64 kbit/s". The G.722 encoder produces a stream of octets, each of which
SHALL be octet-aligned in an RTP packet. The first bit transmitted in the
G.722 octet, which is the most significant bit of the higher sub-band
sample, SHALL correspond to the most significant bit of the octet in the RTP
packet.

Even though the actual sampling rate for G.722 audio is 16000 Hz, the RTP
clock rate for the G722 payload format is 8000 Hz because that value was
erroneously assigned in RFC 1890 and must remain unchanged for backward
compatibility. The octet rate or sample-pair rate is 8000 Hz."




Modified: freeswitch/trunk/src/mod/codecs/mod_g722/mod_g722.c
==============================================================================
--- freeswitch/trunk/src/mod/codecs/mod_g722/mod_g722.c	(original)
+++ freeswitch/trunk/src/mod/codecs/mod_g722/mod_g722.c	Tue Sep  5 18:21:14 2006
@@ -119,7 +119,7 @@
 	/*.codec_type */ SWITCH_CODEC_TYPE_AUDIO,
 	/*.ianacode */ 9,
 	/*.iananame */ "G722",
-	/*.samples_per_second */ 16000,
+	/*.samples_per_second */ 8000,
 	/*.bits_per_second */ 64000,
 	/*.microseconds_per_frame */ 20000,
 	/*.samples_per_frame */ 160,



More information about the Freeswitch-svn mailing list