summaryrefslogtreecommitdiffstats
path: root/stream/stream_lavf.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-09-06 13:46:17 +0200
committerwm4 <wm4@nowhere>2014-09-06 13:46:17 +0200
commita6774d3a83481d77716409fa87963983e663dfe2 (patch)
tree98f1dde247a38b5524119f33a649d326ced76651 /stream/stream_lavf.c
parent7791e25fa0a795c7e042c3938405024468669c29 (diff)
downloadmpv-a6774d3a83481d77716409fa87963983e663dfe2.tar.bz2
mpv-a6774d3a83481d77716409fa87963983e663dfe2.tar.xz
stream_lavf: assume icy title data is terminated with ';'
Should fix #1071.
Diffstat (limited to 'stream/stream_lavf.c')
-rw-r--r--stream/stream_lavf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stream/stream_lavf.c b/stream/stream_lavf.c
index 5702ec228c..c994346290 100644
--- a/stream/stream_lavf.c
+++ b/stream/stream_lavf.c
@@ -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);
}