OSDN Git Service

sbc: use an uint16 to store frame length in internal frame structure
authorAurélien Zanelli <aurelien.zanelli@parrot.com>
Thu, 23 Oct 2014 14:32:21 +0000 (16:32 +0200)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 24 Oct 2014 14:56:46 +0000 (17:56 +0300)
commit68e7cbde5c9d02a76fa5b712a0f0adc0ca04b8ad
treefddd48dd5e3be8eae2e01aebb3678664ad0b83c7
parent7110480576985842a7f7f3dbb4d432f0098d51ad
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.
sbc/sbc.c