a2dp: fix a warning

This commit is contained in:
Wim Taymans 2020-12-16 19:50:14 +01:00
parent 30755c4a44
commit 9b414b0a9e

View file

@ -238,7 +238,7 @@ static int codec_get_num_blocks(void *data)
{
struct impl *this = data;
size_t rtp_size = sizeof(struct rtp_header) + sizeof(struct rtp_payload);
size_t frame_count = SPA_MIN(this->mtu - rtp_size, 660) / this->frame_length;
size_t frame_count = SPA_MIN(this->mtu - rtp_size, 660u) / this->frame_length;
/* frame_count is only 4 bit number */
if (frame_count > 15)