Module Name: src
Committed By: nat
Date: Sat Sep 21 00:01:33 UTC 2019
Modified Files:
src/usr.sbin/bta2dpd/bta2dpd: sbc_encode.c
Log Message:
Fix off by one in sbc encoder. Test mode transmission and reception
works again.
XXX pullup -8 and -9.
To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/usr.sbin/bta2dpd/bta2dpd/sbc_encode.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.sbin/bta2dpd/bta2dpd/sbc_encode.c
diff -u src/usr.sbin/bta2dpd/bta2dpd/sbc_encode.c:1.9 src/usr.sbin/bta2dpd/bta2dpd/sbc_encode.c:1.10
--- src/usr.sbin/bta2dpd/bta2dpd/sbc_encode.c:1.9 Mon Aug 5 13:50:58 2019
+++ src/usr.sbin/bta2dpd/bta2dpd/sbc_encode.c Sat Sep 21 00:01:33 2019
@@ -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 <[email protected]>
@@ -902,7 +902,7 @@ stream(int in, int outfd, uint8_t mode,
totalSize += (size_t)mySize[numpkts];
numpkts++;
- if (numpkts > 13)
+ if (numpkts > 12)
break;
}