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 Remove dead code from sbc decoder.



details:   https://anonhg.NetBSD.org/src/rev/576c3a7faf5d
branches:  trunk
changeset: 449978:576c3a7faf5d
user:      nat <nat%NetBSD.org@localhost>
date:      Sun Mar 31 11:33:27 2019 +0000

description:
Remove dead code from sbc decoder.

Found by Hans Petter Selasky.

diffstat:

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

diffs (23 lines):

diff -r c257f37143ee -r 576c3a7faf5d usr.sbin/bta2dpd/bta2dpd/sbc_encode.c
--- a/usr.sbin/bta2dpd/bta2dpd/sbc_encode.c     Sun Mar 31 10:55:58 2019 +0000
+++ b/usr.sbin/bta2dpd/bta2dpd/sbc_encode.c     Sun Mar 31 11:33:27 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sbc_encode.c,v 1.3 2017/05/27 10:04:57 nat Exp $ */
+/* $NetBSD: sbc_encode.c,v 1.4 2019/03/31 11:33:27 nat Exp $ */
 
 /*-
  * Copyright (c) 2015 - 2016 Nathanial Sloss <nathanialsloss%yahoo.com.au@localhost>
@@ -606,10 +606,10 @@
                                if (bits[chan][sb] == 0)
                                        audioout = 0;
                                else {
-                                       audioout = (((((samples[numsamples]
-                                           * 2) + 1) * delta[chan][sb])/
+                                       audioout = ((((samples[numsamples]
+                                           * 2) + 1) * delta[chan][sb]) /
                                            levels[chan][sb]) -
-                                           (1 * delta[chan][sb]));
+                                           delta[chan][sb]);
                                }
                                samples[numsamples] = (int32_t)audioout;
                                numsamples++;



Home | Main Index | Thread Index | Old Index