mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-16 07:46:27 -04:00
fix(pcmaudio_categorizer): handle WAV header endianness correctly
This commit is contained in:
parent
124a9de309
commit
1864a235bf
@ -954,6 +954,8 @@ bool pcmaudio_categorizer_<LoggerPolicy>::check_wav_like(
|
||||
return false;
|
||||
}
|
||||
|
||||
file_header.size = folly::Endian::little(file_header.size);
|
||||
|
||||
if (file_header.form_sv() != FormatPolicy::wave_id) {
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user