ref: 43caa38fbbae491d64ccfbde1cc1eb7686beec05
parent: 6fc51c39f0f9b30421e9dc8994cd69f9a647f37b
author: lieff <lieff@users.noreply.github.com>
date: Sat Jul 13 11:35:13 EDT 2019
handle extended ID3v1 tag
--- a/minimp3_ex.h
+++ b/minimp3_ex.h
@@ -90,7 +90,11 @@
buf_size -= id3v2size;
#ifdef MINIMP3_SKIP_ID3V1
if (buf_size > 128 && !strncmp((char *)buf + buf_size - 128, "TAG", 3))
+ {
buf_size -= 128;
+ if (buf_size > 227 && !strncmp((char *)buf + buf_size - 227, "TAG+", 4))
+ buf_size -= 227;
+ }
#endif
/* try to make allocation size assumption by first frame */
mp3dec_init(dec);