sbc: fix frame length in DUAL_CHANNEL mode
Status from this message: Applied, thanks.
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | sbc: fix frame length calculation for DUAL_CHANNEL modesbc/ | +1 | 0 replies | |
| 2/2 | sbc: use an uint16 to store frame length in internal frame structuresbc/ | +1 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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