Android-x86
Fork
Faire un don

  • R/O
  • HTTP
  • SSH
  • HTTPS

external-bluetooth-sbc: Commit

external/bluetooth/sbc


Commit MetaInfo

Révision68e7cbde5c9d02a76fa5b712a0f0adc0ca04b8ad (tree)
l'heure2014-10-24 23:56:46
AuteurAurélien Zanelli <aurelien.zanelli@parr...>
CommiterLuiz Augusto von Dentz

Message de Log

sbc: use an uint16 to store frame length in internal frame structure

Otherwise it could overflow in some cases.
For instance in DUAL_CHANNEL mode, with subbands set to SBC_SB_8, blocks
set to SBC_BLK_16 and bitpool set to 64 results in a frame length of 268.

Change Summary

Modification

--- a/sbc/sbc.c
+++ b/sbc/sbc.c
@@ -119,7 +119,7 @@ struct sbc_frame {
119119 uint8_t subbands;
120120 uint8_t bitpool;
121121 uint16_t codesize;
122- uint8_t length;
122+ uint16_t length;
123123
124124 /* bit number x set means joint stereo has been used in subband x */
125125 uint8_t joint;
Afficher sur ancien navigateur de dépôt.