mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-16 15:58:06 -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;
|
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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user