comparison libass/ass.c @ 25582:6b1d7568ae3d

Allow overriding [Script Info] parameters with -ass-force-style option. Patch by Anton Khirnov, wyskas gmail com.
author eugeni
date Sat, 05 Jan 2008 15:38:46 +0000
parents 892813c1b7e8
children 75a108423c11
comparison
equal deleted inserted replaced
25581:c7d66b1e270d 25582:6b1d7568ae3d
334 eq = strrchr(*fs, '='); 334 eq = strrchr(*fs, '=');
335 if (!eq) 335 if (!eq)
336 continue; 336 continue;
337 *eq = '\0'; 337 *eq = '\0';
338 token = eq + 1; 338 token = eq + 1;
339
340 if(!strcasecmp(*fs, "PlayResX"))
341 track->PlayResX = atoi(token);
342 else if(!strcasecmp(*fs, "PlayResY"))
343 track->PlayResY = atoi(token);
344 else if(!strcasecmp(*fs, "Timer"))
345 track->Timer = atof(token);
346 else if(!strcasecmp(*fs, "WrapStyle"))
347 track->WrapStyle = atoi(token);
339 348
340 dt = strrchr(*fs, '.'); 349 dt = strrchr(*fs, '.');
341 if (dt) { 350 if (dt) {
342 *dt = '\0'; 351 *dt = '\0';
343 style = *fs; 352 style = *fs;