diff options
author | wm4 <wm4@nowhere> | 2014-09-06 13:46:17 +0200 |
---|---|---|
committer | Alessandro Ghedini <alessandro@ghedini.me> | 2014-09-06 14:32:24 +0200 |
commit | e3d3a47c0dd932b24455a4172b2ffc43aec10043 (patch) | |
tree | e35c813111c3c39e50a0a3ce0ba0169e2f7f5742 | |
parent | b109d20ef745415d8d39af292062aa89a3c94fd8 (diff) | |
download | mpv-e3d3a47c0dd932b24455a4172b2ffc43aec10043.tar.bz2 mpv-e3d3a47c0dd932b24455a4172b2ffc43aec10043.tar.xz |
stream_lavf: assume icy title data is terminated with ';'
Should fix #1071.
-rw-r--r-- | stream/stream_lavf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stream/stream_lavf.c b/stream/stream_lavf.c index c84945eba7..d291c96bc3 100644 --- a/stream/stream_lavf.c +++ b/stream/stream_lavf.c @@ -303,7 +303,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); } |