[MPlayer-cvslog] r23560 - trunk/libass/ass.c

eugeni subversion at mplayerhq.hu
Sat Jun 16 00:22:17 CEST 2007


Author: eugeni
Date: Sat Jun 16 00:22:16 2007
New Revision: 23560

Log:
When parsing ass-force-style arguments, search for '=' and '.' characters with
strrchr. This allows using it for styles whose name contains those characters.
Patch by Бранко Мајић <branko majic at gmail com>.


Modified:
   trunk/libass/ass.c

Modified: trunk/libass/ass.c
==============================================================================
--- trunk/libass/ass.c	(original)
+++ trunk/libass/ass.c	Sat Jun 16 00:22:16 2007
@@ -331,13 +331,13 @@ void process_force_style(ass_track_t* tr
 	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;



More information about the MPlayer-cvslog mailing list