From 9b414b0a9ea820d699138c919679bebabf0e3740 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 16 Dec 2020 19:50:14 +0100 Subject: [PATCH] a2dp: fix a warning --- spa/plugins/bluez5/a2dp-codec-ldac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spa/plugins/bluez5/a2dp-codec-ldac.c b/spa/plugins/bluez5/a2dp-codec-ldac.c index 84c39e2cb..855d2d92f 100644 --- a/spa/plugins/bluez5/a2dp-codec-ldac.c +++ b/spa/plugins/bluez5/a2dp-codec-ldac.c @@ -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)