From 7cc530905a3a4ccc6372ec9f8c55290f4a2e7df5 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Fri, 1 Mar 2019 12:30:26 -0500 Subject: [PATCH] TT#50652 add support for 8-bit unsigned PCM Change-Id: I8a75c81ee90c2593a24367f86107863cfd5f680f --- lib/codeclib.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/codeclib.c b/lib/codeclib.c index 0422947d3..90e734085 100644 --- a/lib/codeclib.c +++ b/lib/codeclib.c @@ -345,7 +345,7 @@ static codec_def_t __codec_defs[] = { .default_clockrate = 8000, .default_channels = 1, }, - // for file writing + // for file reading and writing { .rtpname = "PCM-S16LE", .avcodec_id = AV_CODEC_ID_PCM_S16LE, @@ -354,6 +354,14 @@ static codec_def_t __codec_defs[] = { .media_type = MT_AUDIO, .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", .avcodec_id = AV_CODEC_ID_MP3,