bluez5: fix aptx-ll max_frames handling

This commit is contained in:
Pauli Virtanen 2021-11-06 11:53:06 +02:00
parent f6a83a91e0
commit c3a8041e0f

View file

@ -343,6 +343,8 @@ static void *codec_init(const struct a2dp_codec *codec, uint32_t flags,
if (this->hd) if (this->hd)
this->max_frames = (this->mtu - sizeof(struct rtp_header)) / this->frame_length; 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 else
this->max_frames = this->mtu / this->frame_length; this->max_frames = this->mtu / this->frame_length;