Fix off by one in sbc encoder. Test mode transmission and reception
works again. XXX pullup -8 and -9.
This commit is contained in:
parent
69d856e495
commit
40dc704098
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: sbc_encode.c,v 1.9 2019/08/05 13:50:58 maya Exp $ */
|
/* $NetBSD: sbc_encode.c,v 1.10 2019/09/21 00:01:33 nat Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 2015 - 2016 Nathanial Sloss <nathanialsloss@yahoo.com.au>
|
* Copyright (c) 2015 - 2016 Nathanial Sloss <nathanialsloss@yahoo.com.au>
|
||||||
@ -902,7 +902,7 @@ stream(int in, int outfd, uint8_t mode, uint8_t freq, uint8_t bands, uint8_t
|
|||||||
totalSize += (size_t)mySize[numpkts];
|
totalSize += (size_t)mySize[numpkts];
|
||||||
numpkts++;
|
numpkts++;
|
||||||
|
|
||||||
if (numpkts > 13)
|
if (numpkts > 12)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user