History

handle extended ID3v1 tag

lieff committed 7 years ago

Commit 43caa381 parent 6fc51c31 file · +4 −0Browse files

Unified · Split

minimp3_ex.h+4−0
@@ -90,7 +90,11 @@ void mp3dec_load_buf(mp3dec_t *dec, const uint8_t *buf, size_t buf_size, mp3dec_ · 89 unmodified lines
9090 buf_size -= id3v2size;
9191 #ifdef MINIMP3_SKIP_ID3V1
9292 if (buf_size > 128 && !strncmp((char *)buf + buf_size - 128, "TAG", 3))
93+ {
9394 buf_size -= 128;
95+ if (buf_size > 227 && !strncmp((char *)buf + buf_size - 227, "TAG+", 4))
96+ buf_size -= 227;
97+ }
9498 #endif
9599 /* try to make allocation size assumption by first frame */
96100 mp3dec_init(dec);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t