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; }