mirror of
https://github.com/mpv-player/mpv
synced 2024-12-27 01:22:30 +00:00
stream_lavf: assume icy title data is terminated with ';'
Should fix #1071.
This commit is contained in:
parent
7791e25fa0
commit
a6774d3a83
@ -305,7 +305,7 @@ static struct mp_tags *read_icy(stream_t *s)
|
||||
int i = bstr_find(packet, head);
|
||||
if (i >= 0) {
|
||||
packet = bstr_cut(packet, i + head.len);
|
||||
int end = bstrchr(packet, '\'');
|
||||
int end = bstr_find(packet, bstr0("\';"));
|
||||
packet = bstr_splice(packet, 0, end);
|
||||
mp_tags_set_bstr(res, bstr0("icy-title"), packet);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user