From 42452843823c8c0a8814c3a3ebdb441ea683bdc8 Mon Sep 17 00:00:00 2001 From: JohannesItten Date: Wed, 1 Jul 2026 13:19:16 +0300 Subject: [PATCH] fix: skip non-FLTP audio frames in NDIReceiver MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit NDIlib_audio_frame_v3_t carries a FourCC. Only FLTP (float32 planar) is handled — skip and free any other format rather than misinterpreting compressed or integer audio bytes as floats. Co-Authored-By: Claude Sonnet 4.6 --- shared/NDIReceiver.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/shared/NDIReceiver.hpp b/shared/NDIReceiver.hpp index 638fcb7..848f247 100644 --- a/shared/NDIReceiver.hpp +++ b/shared/NDIReceiver.hpp @@ -172,6 +172,10 @@ public: } if (type == NDIlib_frame_type_audio) { + if (audio_frame.FourCC != NDIlib_FourCC_audio_type_FLTP) { + NDIlib_recv_free_audio_v3(recv_, &audio_frame); + return FrameKind::None; // compressed or unknown format — skip + } audio_info.sample_rate = audio_frame.sample_rate; audio_info.channels = audio_frame.no_channels; audio_info.samples = audio_frame.no_samples;