Re: Text file detected as MP3 audio



> I've seen other files reported erroneously as ID3, too.  We probably
> should only be keying off of the extension only here, as ID3 files don't
> have a fixed signature.

Actually things should work better with gnome-mime-data head, since I
changed the ID3 sniffing to also look for a know ID3 version number.
The patterns now look like 

0:160   string          ID3\x20\x00                            
audio/mpeg
0:160   string          ID3\x30\x00                            
audio/mpeg
0:160   string          ID3\x40\x00                            
audio/mpeg

so text files should no longer match that.

Christophe

Attachment: signature.asc
Description: Ceci est une partie de message =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e=2E?=



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]