From 8ae40e0b0046a011bbc15771f248d7950a606ae4 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Thu, 16 Aug 2007 19:14:31 +0000 Subject: Fix minumum bitpool calculation --- audio/a2dp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'audio/a2dp.c') diff --git a/audio/a2dp.c b/audio/a2dp.c index d1f90fd1..bc9c4013 100644 --- a/audio/a2dp.c +++ b/audio/a2dp.c @@ -675,8 +675,7 @@ static gboolean select_sbc_params(struct sbc_codec_cap *cap, else if (supported->allocation_method & A2DP_ALLOCATION_SNR) cap->allocation_method = A2DP_ALLOCATION_SNR; - min_bitpool = MAX(default_bitpool(cap->frequency, cap->channel_mode), - supported->min_bitpool); + min_bitpool = MAX(2, supported->min_bitpool); max_bitpool = MIN(default_bitpool(cap->frequency, cap->channel_mode), supported->max_bitpool); -- cgit