Use correct RTP payload type for aptX, LDAC,SBC

According to the A2DP spec, the payload type should be
set to a number between 96 and 127.
This is fixed for AAC codec, but not the rest.

Original PulseAudio issue: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/issues/591
This commit is contained in:
lsde 2021-07-07 23:03:39 +00:00 committed by Wim Taymans
parent 2dcdc80030
commit 579481ab70
3 changed files with 3 additions and 3 deletions

View file

@ -287,7 +287,7 @@ static int codec_start_encode (void *data,
memset(this->header, 0, sizeof(struct rtp_header));
this->header->v = 2;
this->header->pt = 1;
this->header->pt = 96;
this->header->sequence_number = htons(seqnum);
this->header->timestamp = htonl(timestamp);
return sizeof(struct rtp_header);