]> granicus.if.org Git - libass/commitdiff
When parsing ass-force-style arguments, search for '=' and '.' characters with
authoreugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>
Fri, 15 Jun 2007 22:22:16 +0000 (22:22 +0000)
committereugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>
Fri, 15 Jun 2007 22:22:16 +0000 (22:22 +0000)
strrchr. This allows using it for styles whose name contains those characters.
Patch by Бранко Мајић <branko majic at gmail com>.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23560 b3059339-0415-0410-9bf9-f77b7e298cf2

libass/ass.c

index 8e638fdbac46eb04780c8e76fabdb710892ee3c6..e18a540a0dae11f3ff79d2329dd4f6efb76687aa 100644 (file)
@@ -331,13 +331,13 @@ void process_force_style(ass_track_t* track) {
        if (!list) return;
        
        for (fs = list; *fs; ++fs) {
-               eq = strchr(*fs, '=');
+               eq = strrchr(*fs, '=');
                if (!eq)
                        continue;
                *eq = '\0';
                token = eq + 1;
 
-               dt = strchr(*fs, '.');
+               dt = strrchr(*fs, '.');
                if (dt) {
                        *dt = '\0';
                        style = *fs;