Browse Source

TT#50652 add support for 8-bit unsigned PCM

Change-Id: I8a75c81ee90c2593a24367f86107863cfd5f680f
changes/64/27664/6
Richard Fuchs 7 years ago
parent
commit
7cc530905a
1 changed files with 9 additions and 1 deletions
  1. +9
    -1
      lib/codeclib.c

+ 9
- 1
lib/codeclib.c View File

@ -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,


Loading…
Cancel
Save