Skip to content

Commit

Permalink
Fix issue with exact super frame size giving smaller packet
Browse files Browse the repository at this point in the history
  • Loading branch information
sh123 committed Feb 18, 2024
1 parent 532686c commit 83cffea
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public int getPcmAudioBufferSize(int codec2ModeId) {

@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;
}
Expand Down

0 comments on commit 83cffea

Please sign in to comment.