]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
RTP profile for audio and video conferences with minimal control.
authorBrian West <brian@freeswitch.org>
Tue, 5 Sep 2006 22:21:14 +0000 (22:21 +0000)
committerBrian West <brian@freeswitch.org>
Tue, 5 Sep 2006 22:21:14 +0000 (22:21 +0000)
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."

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2523 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/codecs/mod_g722/mod_g722.c

index 7e07365ef9c37fdf47312faa04965d2346a31ba8..f202d6b6dd589e988a6a574561095633e2a5568a 100644 (file)
@@ -119,7 +119,7 @@ static const switch_codec_implementation_t g722_implementation = {
        /*.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,