From f8ea68071c3ed23a5d431a36fd3c2f4527848d6e Mon Sep 17 00:00:00 2001 From: eugeni Date: Mon, 19 May 2008 18:37:27 +0000 Subject: [PATCH] In case 2 styles have the same name, prefer the latest one. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26839 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libass/ass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libass/ass.c b/libass/ass.c index 5c750d6..df65dbd 100644 --- a/libass/ass.c +++ b/libass/ass.c @@ -163,7 +163,7 @@ static void rskip_spaces(char** str, char* limit) { static int lookup_style(ass_track_t* track, char* name) { int i; if (*name == '*') ++name; // FIXME: what does '*' really mean ? - for (i=0; in_styles; ++i) { + for (i = track->n_styles - 1; i >= 0; --i) { // FIXME: mb strcasecmp ? if (strcmp(track->styles[i].Name, name) == 0) return i; -- 2.40.0