From 1864a235bf3172fabf248bab2db7f108e610a7af Mon Sep 17 00:00:00 2001 From: Marcus Holland-Moritz Date: Wed, 6 Aug 2025 14:15:54 +0200 Subject: [PATCH] fix(pcmaudio_categorizer): handle WAV header endianness correctly --- src/writer/categorizer/pcmaudio_categorizer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/writer/categorizer/pcmaudio_categorizer.cpp b/src/writer/categorizer/pcmaudio_categorizer.cpp index caeb3fc0..21662a2e 100644 --- a/src/writer/categorizer/pcmaudio_categorizer.cpp +++ b/src/writer/categorizer/pcmaudio_categorizer.cpp @@ -954,6 +954,8 @@ bool pcmaudio_categorizer_::check_wav_like( return false; } + file_header.size = folly::Endian::little(file_header.size); + if (file_header.form_sv() != FormatPolicy::wave_id) { return false; }