dhowden / tag

ID3, MP4 and OGG/FLAC metadata parsing in Go
BSD 2-Clause "Simplified" License
558 stars 72 forks source link

Error in Cover Art extraction #75

Closed mobedoor closed 3 years ago

mobedoor commented 3 years ago

Hello. The package fails to extract cover art from the following file 02 path of the wind.zip

wader commented 3 years ago

There is a WCOP tag with a zero size field that for some reason tag see as end of tags https://github.com/dhowden/tag/blob/master/id3v2.go#L260 which is not the case. Maybe that condition should actually look if the name is padding zero bytes somehow as i think a zero field is ok.