AW: [ID3 Dev] UTF16LE BOM FF FE incorrectly being identified as start of MP3 Audio

Ben Bennett fiji at ayup.limey.net
Sun Apr 15 14:42:16 PDT 2007


On Sun, Apr 15, 2007 at 07:01:14PM +0100, Paul Taylor wrote:
> Ben Bennett wrote:
> It seems a bit arbitary, my original method wont work because we may get 
> false synchronisations in the ID3 tag, 

Note that the false sync is not due to any bugs, the person writing
the tag may have chosen not to unsynchronize it (in fact, I would
recommend that most people _not_ unsync the tags).

> yet we can trust the ID3 header size because it is always calculated
> correctly.

Well, the tag size part of the spec has not changed in a long long
time.

>  Well I guess you are ther authority on the subject 

Ha!

> thanks for your advice I think I will rework my code to read from
> the ID3 header upto the size reported, and then check that MP3Audio
> starts immediately afterwards for peace of mind. But IF the mp3
> header does not start then we have a problem, Ill let you know if I
> have any files that fall into that category.

That sounds like a good sanity check... but I would not be surprised
if you found strange new tags...

		     -ben

---------------------------------------------------------------------
To unsubscribe, e-mail: id3v2-unsubscribe at id3.org
For additional commands, e-mail: id3v2-help at id3.org



More information about the ID3v2 mailing list