mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-07 13:30:03 -05:00
rtp: Drop support for non-L16 media
There doesn't seem much value in supporting streaming U8/mulaw/alaw on the network, and it's unlikely these get any testing. Makes more sense to drop these formats and just convert to L16 if we're dealing with source media in that format. Signed-off-by: Arun Raghavan <arun@arunraghavan.net>
This commit is contained in:
parent
7766f0e8d7
commit
02fa9d5fc6
2 changed files with 1 additions and 42 deletions
|
|
@ -89,15 +89,6 @@ static pa_sample_spec *parse_sdp_sample_spec(pa_sample_spec *ss, char *c) {
|
|||
if (pa_startswith(c, "L16/")) {
|
||||
ss->format = PA_SAMPLE_S16BE;
|
||||
c += 4;
|
||||
} else if (pa_startswith(c, "L8/")) {
|
||||
ss->format = PA_SAMPLE_U8;
|
||||
c += 3;
|
||||
} else if (pa_startswith(c, "PCMA/")) {
|
||||
ss->format = PA_SAMPLE_ALAW;
|
||||
c += 5;
|
||||
} else if (pa_startswith(c, "PCMU/")) {
|
||||
ss->format = PA_SAMPLE_ULAW;
|
||||
c += 5;
|
||||
} else
|
||||
return NULL;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue