Skip to content

Commit

Permalink
stream_lavf: assume icy title data is terminated with ';'
Browse files Browse the repository at this point in the history
Should fix #1071.
  • Loading branch information
wm4 authored and ghedo committed Sep 6, 2014
1 parent b109d20 commit e3d3a47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stream/stream_lavf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit e3d3a47

Please sign in to comment.