From f0ce95607f566d288674f317176c51bcda026a9d Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 16 Apr 2012 23:00:19 +0200 Subject: subassconvert: handle unquoted attributes in subrip font tags Previously, mplayer didn't convert tags like . But such subtitles exist in the wild, and should be handled. --- bstr.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bstr.h') diff --git a/bstr.h b/bstr.h index 8b1644cac0..b3f942535e 100644 --- a/bstr.h +++ b/bstr.h @@ -82,6 +82,9 @@ int bstr_decode_utf8(struct bstr str, struct bstr *out_next); // On error, -1 is returned. On success, it returns a value in the range [1, 4]. int bstr_parse_utf8_code_length(unsigned char b); +// If s starts with prefix, return true and return the rest of the string in s. +bool bstr_eatstart(struct bstr *s, struct bstr prefix); + static inline struct bstr bstr_cut(struct bstr str, int n) { if (n > str.len) -- cgit v1.2.3