mirror of
https://github.com/taglib/taglib.git
synced 2026-11-05 22:18:50 -05:00
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:
Binary file not shown.
Reference in New Issue
Block a user