fix(pcmaudio_categorizer): handle WAV header endianness correctly

This commit is contained in:
Marcus Holland-Moritz 2025-08-06 14:15:54 +02:00
parent 124a9de309
commit 1864a235bf

View File

@ -954,6 +954,8 @@ bool pcmaudio_categorizer_<LoggerPolicy>::check_wav_like(
return false; return false;
} }
file_header.size = folly::Endian::little(file_header.size);
if (file_header.form_sv() != FormatPolicy::wave_id) { if (file_header.form_sv() != FormatPolicy::wave_id) {
return false; return false;
} }