Browse Source

Cleanup.

tags/v1.9.10
Stephane Letz 11 years ago
parent
commit
0b105934b7
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      common/JackNetTool.cpp

+ 2
- 1
common/JackNetTool.cpp View File

@@ -861,6 +861,7 @@ namespace Jack
}
int res = opus_custom_encode_float(fOpusEncoder[port_index], buffer, ((nframes == -1) ? fPeriodSize : nframes), fCompressedBuffer[port_index], fCompressedMaxSizeByte);
if (res < 0 || res >= 65535) {
jack_error("opus_custom_encode_float error res = %d", res);
fCompressedSizesByte[port_index] = 0;
} else {
fCompressedSizesByte[port_index] = res;
@@ -877,7 +878,7 @@ namespace Jack
if (fPortBuffer[port_index]) {
int res = opus_custom_decode_float(fOpusDecoder[port_index], fCompressedBuffer[port_index], fCompressedSizesByte[port_index], fPortBuffer[port_index], ((nframes == -1) ? fPeriodSize : nframes));
if (res < 0 || res != ((nframes == -1) ? fPeriodSize : nframes)) {
jack_error("opus_decode_float error fCompressedSizeByte = %d res = %d", fCompressedSizesByte[port_index], res);
jack_error("opus_custom_decode_float error fCompressedSizeByte = %d res = %d", fCompressedSizesByte[port_index], res);
}
}
}


Loading…
Cancel
Save