Browse Source

TT#64050 add `G729a` as an incorrect alternative to `G729`

Workaround for a bug in certain phones

Change-Id: I3203ce9d1992146c38b826dd96a962e6673915c7
(cherry picked from commit c8338a4372)
changes/57/32057/1
Richard Fuchs 7 years ago
parent
commit
0e9adc0c9b
1 changed files with 23 additions and 0 deletions
  1. +23
    -0
      lib/codeclib.c

+ 23
- 0
lib/codeclib.c View File

@ -178,6 +178,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",
@ -191,6 +202,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",


Loading…
Cancel
Save