Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/bta2dpd/bta2dpd Fix off by one in sbc encoder. Tes...



details:   https://anonhg.NetBSD.org/src/rev/937a4efa88d4
branches:  trunk
changeset: 454543:937a4efa88d4
user:      nat <nat%NetBSD.org@localhost>
date:      Sat Sep 21 00:01:33 2019 +0000

description:
Fix off by one in sbc encoder.  Test mode transmission and reception
works again.

XXX pullup -8 and -9.

diffstat:

 usr.sbin/bta2dpd/bta2dpd/sbc_encode.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 042ed67ef972 -r 937a4efa88d4 usr.sbin/bta2dpd/bta2dpd/sbc_encode.c
--- a/usr.sbin/bta2dpd/bta2dpd/sbc_encode.c     Fri Sep 20 22:47:36 2019 +0000
+++ b/usr.sbin/bta2dpd/bta2dpd/sbc_encode.c     Sat Sep 21 00:01:33 2019 +0000
@@ -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@localhost>
@@ -902,7 +902,7 @@
                totalSize += (size_t)mySize[numpkts];
                numpkts++;
 
-               if (numpkts > 13)
+               if (numpkts > 12)
                        break;
        }
 



Home | Main Index | Thread Index | Old Index