Module Name: src Committed By: nat Date: Sun Mar 31 11:33:27 UTC 2019
Modified Files: src/usr.sbin/bta2dpd/bta2dpd: sbc_encode.c Log Message: Remove dead code from sbc decoder. Found by Hans Petter Selasky. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 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.3 src/usr.sbin/bta2dpd/bta2dpd/sbc_encode.c:1.4 --- src/usr.sbin/bta2dpd/bta2dpd/sbc_encode.c:1.3 Sat May 27 10:04:57 2017 +++ src/usr.sbin/bta2dpd/bta2dpd/sbc_encode.c Sun Mar 31 11:33:27 2019 @@ -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 <nathanialsl...@yahoo.com.au> @@ -606,10 +606,10 @@ sbc_decode(int32_t *samples, int16_t *pc 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++;