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/27c477ca1ee5
branches:  trunk
changeset: 997903:27c477ca1ee5
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 5b8314d7605d -r 27c477ca1ee5 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