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>.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23560 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
eugeni 2007-06-15 22:22:16 +00:00
parent 34402c3cf2
commit 387ccdc034
1 changed files with 2 additions and 2 deletions

View 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;