Remove dead code from sbc decoder.
Found by Hans Petter Selasky.
This commit is contained in:
parent
25aaa28e7c
commit
ef891695e9
|
@ -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>
|
||||
|
@ -606,10 +606,10 @@ sbc_decode(int32_t *samples, int16_t *pcm)
|
|||
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++;
|
||||
|
|
Loading…
Reference in New Issue