mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
bluez5: fix aptx-ll max_frames handling
This commit is contained in:
parent
f6a83a91e0
commit
c3a8041e0f
1 changed files with 2 additions and 0 deletions
|
|
@ -343,6 +343,8 @@ static void *codec_init(const struct a2dp_codec *codec, uint32_t flags,
|
|||
|
||||
if (this->hd)
|
||||
this->max_frames = (this->mtu - sizeof(struct rtp_header)) / this->frame_length;
|
||||
else if (codec_is_ll(codec))
|
||||
this->max_frames = SPA_MIN(256u, this->mtu) / this->frame_length;
|
||||
else
|
||||
this->max_frames = this->mtu / this->frame_length;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue