Skip to content

Commit 95094fc

Browse files
committed
ContainerOSC
1 parent 4132024 commit 95094fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AudioTools/AudioCodecs/ContainerOSC.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class OSCContainerEncoder : public AudioEncoder {
6161
/// Add data segment. On first write we also add a AudioInfo header
6262
size_t write(const uint8_t *data, size_t len) {
6363
LOGD("OSCContainerEncoder::write: %d", (int)len);
64-
if (packet_count % repeat_info == 0) {
64+
if ((repeat_info > 0) && (packet_count % repeat_info == 0)) {
6565
writeAudioInfo();
6666
}
6767
writeAudio(data, len);

0 commit comments

Comments
 (0)