Windows 10 has a bug that could be a danger to your music collection, specifically FLAC files, should you choose to edit their metadata.
The problem occurs when FLAC music files – a format that offers lossless audio for full CD audio quality, yet at a much smaller size than a WAV file – have their metadata edited in File Explorer (meaning the folders on your desktop). If this happens, the bug could cause the music file(s) in question to be rendered unplayable.
Microsoft explains: “This issue might occur when the FLAC files contain an ID3 frame before the FLAC header. The ID3 frame contains metadata such as title and artist. The FLAC property handler assumed that all FLAC files started with the 4 byte start code fLaC and did not take into account the ID3 frame at the beginning of the file. Therefore, the ID3 frame would be overwritten without the start code fLaC rendering the file unplayable.”
In other words, if the metadata is edited by the user, that ID3 frame can be overwritten, and therefore the file becomes corrupted.
This gremlin has been resolved in patch KB5003214, which was released in late May, but note that this is a preview update – the finalized version will be released in June (next week). Do remember that as a preview right now, KB5003214 could have issues of its own, and indeed is reportedly causing some trouble with the taskbar. Hopefully that separate issue will be fully cured when the June cumulative update is rolled out.
What about files that have already been affected by this bug? Fortunately, there is a way of repairing messed-up FLAC files, although it’s a little clunky: Microsoft details this fix (involving running a PowerShell script) here.
Note that the PowerShell script may make the FLAC file playable again, but it does not restore the metadata which was overwritten.