mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-26 13:44:23 +08:00
whitespace fixes
This commit is contained in:
parent
0c96c87902
commit
a745805cb3
@ -594,7 +594,7 @@ static inline void sbc_synthesize_four(struct sbc_decoder_state *state,
|
||||
for(i = 0; i < 8; i++) {
|
||||
/* Shifting */
|
||||
state->offset[ch][i]--;
|
||||
if(state->offset[ch][i] < 0) {
|
||||
if (state->offset[ch][i] < 0) {
|
||||
state->offset[ch][i] = 79;
|
||||
for(j = 0; j < 9; j++) {
|
||||
state->V[ch][j+80] = state->V[ch][j];
|
||||
@ -634,7 +634,7 @@ static inline void sbc_synthesize_eight(struct sbc_decoder_state *state,
|
||||
for(i = 0; i < 16; i++) {
|
||||
/* Shifting */
|
||||
state->offset[ch][i]--;
|
||||
if(state->offset[ch][i] < 0) {
|
||||
if (state->offset[ch][i] < 0) {
|
||||
state->offset[ch][i] = 159;
|
||||
for(j = 0; j < 9; j++) {
|
||||
state->V[ch][j+160] = state->V[ch][j];
|
||||
|
@ -122,11 +122,11 @@ static void decode(char *filename, char *audiodevice, int tofile)
|
||||
// buffer is too full to stuff decoded audio in
|
||||
// so it must be written to the device
|
||||
written = write(ad, buf, count);
|
||||
if(written > 0) count -= written;
|
||||
if (written > 0) count -= written;
|
||||
}
|
||||
|
||||
// sanity check
|
||||
if(count + sbc.len > BUF_SIZE) {
|
||||
if (count + sbc.len > BUF_SIZE) {
|
||||
fprintf(stderr, "buffer size of %d is too small for decoded data (%d)\n", BUF_SIZE, sbc.len + count);
|
||||
exit(1);
|
||||
}
|
||||
@ -143,7 +143,7 @@ static void decode(char *filename, char *audiodevice, int tofile)
|
||||
|
||||
if (count > 0) {
|
||||
written = write(ad, buf, count);
|
||||
if(written > 0) count -= written;
|
||||
if (written > 0) count -= written;
|
||||
}
|
||||
|
||||
close:
|
||||
|
Loading…
Reference in New Issue
Block a user