FileRef: Check the header before parsing a file by its extension (#1490)

The MPEG, MPC, WavPack, APE, TrueAudio, AIFF and WAV parsers accept
another format's content as valid, so a misnamed file was read with no
audio properties or tags, and saving it could damage it. These branches
now check the header first and try content-based detection on a
mismatch, falling back to the extension's parser if it finds nothing.
This commit is contained in:
Ryan Francesconi
2026-11-03 20:17:53 +01:00
committed by GitHub
parent ba4eba9d41
commit 275029408c
3 changed files with 222 additions and 14 deletions
Binary file not shown.