|
|
@ -345,7 +345,7 @@ static codec_def_t __codec_defs[] = { |
|
|
.default_clockrate = 8000, |
|
|
.default_clockrate = 8000, |
|
|
.default_channels = 1, |
|
|
.default_channels = 1, |
|
|
}, |
|
|
}, |
|
|
// for file writing |
|
|
|
|
|
|
|
|
// for file reading and writing |
|
|
{ |
|
|
{ |
|
|
.rtpname = "PCM-S16LE", |
|
|
.rtpname = "PCM-S16LE", |
|
|
.avcodec_id = AV_CODEC_ID_PCM_S16LE, |
|
|
.avcodec_id = AV_CODEC_ID_PCM_S16LE, |
|
|
@ -354,6 +354,14 @@ static codec_def_t __codec_defs[] = { |
|
|
.media_type = MT_AUDIO, |
|
|
.media_type = MT_AUDIO, |
|
|
.codec_type = &codec_type_avcodec, |
|
|
.codec_type = &codec_type_avcodec, |
|
|
}, |
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
.rtpname = "PCM-U8", |
|
|
|
|
|
.avcodec_id = AV_CODEC_ID_PCM_U8, |
|
|
|
|
|
.avcodec_name = NULL, |
|
|
|
|
|
.packetizer = packetizer_passthrough, |
|
|
|
|
|
.media_type = MT_AUDIO, |
|
|
|
|
|
.codec_type = &codec_type_avcodec, |
|
|
|
|
|
}, |
|
|
{ |
|
|
{ |
|
|
.rtpname = "MP3", |
|
|
.rtpname = "MP3", |
|
|
.avcodec_id = AV_CODEC_ID_MP3, |
|
|
.avcodec_id = AV_CODEC_ID_MP3, |
|
|
|