kopia lustrzana https://github.com/sh123/codec2_talkie
Fix issue with exact super frame size giving smaller packet
rodzic
532686c3cf
commit
83cffeaeea
|
@ -68,7 +68,7 @@ public class AudioCodec2FrameAggregator implements Protocol {
|
|||
|
||||
@Override
|
||||
public void sendCompressedAudio(String src, String dst, byte[] frame) throws IOException {
|
||||
if ( _outputBufferPos + frame.length >= _outputBufferSize) {
|
||||
if ( _outputBufferPos + frame.length > _outputBufferSize) {
|
||||
_childProtocol.sendCompressedAudio(src, dst, Arrays.copyOf(_outputBuffer, _outputBufferPos));
|
||||
_outputBufferPos = 0;
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue