diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2007-08-16 19:14:31 +0000 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2007-08-16 19:14:31 +0000 |
commit | 8ae40e0b0046a011bbc15771f248d7950a606ae4 (patch) | |
tree | b90cd418ac5ba1174ada72a2c2db8136240f6732 /audio/a2dp.c | |
parent | bf48e6cc1e92a136070f70d880c17d221f410175 (diff) |
Fix minumum bitpool calculation
Diffstat (limited to 'audio/a2dp.c')
-rw-r--r-- | audio/a2dp.c | 3 |
1 files changed, 1 insertions, 2 deletions
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); |