diff --git a/lib/codeclib.c b/lib/codeclib.c index fbb33028a..c759f26f0 100644 --- a/lib/codeclib.c +++ b/lib/codeclib.c @@ -169,6 +169,17 @@ static codec_def_t __codec_defs[] = { .media_type = MT_AUDIO, .codec_type = &codec_type_avcodec, }, + { + .rtpname = "G729a", + .avcodec_id = AV_CODEC_ID_G729, + .clockrate_mult = 1, + .default_clockrate = 8000, + .default_channels = 1, + .default_ptime = 20, + .packetizer = packetizer_passthrough, + .media_type = MT_AUDIO, + .codec_type = &codec_type_avcodec, + }, #else { .rtpname = "G729", @@ -182,6 +193,18 @@ static codec_def_t __codec_defs[] = { .media_type = MT_AUDIO, .codec_type = &codec_type_bcg729, }, + { + .rtpname = "G729a", + .avcodec_id = -1, + .clockrate_mult = 1, + .default_clockrate = 8000, + .default_channels = 1, + .default_ptime = 20, + .packetizer = packetizer_g729, + .bits_per_sample = 1, // 10 ms frame has 80 samples and encodes as (max) 10 bytes = 80 bits + .media_type = MT_AUDIO, + .codec_type = &codec_type_bcg729, + }, #endif { .rtpname = "speex",