WeTransfer / format_parser

file metadata parsing, done cheap
https://rubygems.org/gems/format_parser
Other
62 stars 18 forks source link

Fixed bug with WAV file wrongly parsed as MP3 #240

Closed CostinTanasoiu closed 1 year ago

CostinTanasoiu commented 1 year ago

This happened when parsing files without passing a filename hint, hence relying only on the file bytes. The MP3 format is loose and the MP3 parser is prone to false positives, but hopefully the following fixes will prevent this from happening for any of the file types for which we have registered parsers.