Skip to content

sbc: fix frame length in DUAL_CHANNEL mode

Aurélien Zanelli linux-bluetooth 1 version Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2sbc: fix frame length calculation for DUAL_CHANNEL modesbc/sbc.c+1 -10 replies
2/2sbc: use an uint16 to store frame length in internal frame structuresbc/sbc.c+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] sbc: fix frame length in DUAL_CHANNEL mode

Hi everyone,
I was playing with sbc encoder in GStreamer, which use bluez sbc library to encode and I found two issues related to DUAL_CHANNEL mode in it.

First the frame length calculation for DUAL_CHANNEL mode was wrong. I found the A2DP specification and it seems that for DUAL_CHANNEL mode, we should use the same formula as MONO mode to calculate the frame length. The first patch intend to fix this.

The second patch try to fix an overflow which can occur when the frame length is greater than 255.

Aurélien Zanelli (2):
sbc: fix frame length calculation for DUAL_CHANNEL mode
sbc: use an uint16 to store frame length in internal frame structure

 sbc/sbc.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Signature · 1 line
1.7.10.4