# HG changeset patch # User eugeni # Date 1199547526 0 # Node ID 6b1d7568ae3d8987c1b1fd088a1a7f5b0cceb335 # Parent c7d66b1e270db9823c849dfed39260fc02c03b81 Allow overriding [Script Info] parameters with -ass-force-style option. Patch by Anton Khirnov, wyskas gmail com. diff -r c7d66b1e270d -r 6b1d7568ae3d DOCS/man/en/mplayer.1 --- a/DOCS/man/en/mplayer.1 Sat Jan 05 14:53:13 2008 +0000 +++ b/DOCS/man/en/mplayer.1 Sat Jan 05 15:38:46 2008 +0000 @@ -2012,12 +2012,14 @@ . .TP .B \-ass\-force\-style <[Style.]Param=Value[,...]> -Override some style parameters. +Override some style or script info parameters. .sp .I EXAMPLE: .PD 0 .RSs \-ass\-force\-style FontName=Arial,Default.Bold=1 +.br +-ass-force-style PlayResY=768 .RE .PD 1 . diff -r c7d66b1e270d -r 6b1d7568ae3d libass/ass.c --- a/libass/ass.c Sat Jan 05 14:53:13 2008 +0000 +++ b/libass/ass.c Sat Jan 05 15:38:46 2008 +0000 @@ -337,6 +337,15 @@ *eq = '\0'; token = eq + 1; + if(!strcasecmp(*fs, "PlayResX")) + track->PlayResX = atoi(token); + else if(!strcasecmp(*fs, "PlayResY")) + track->PlayResY = atoi(token); + else if(!strcasecmp(*fs, "Timer")) + track->Timer = atof(token); + else if(!strcasecmp(*fs, "WrapStyle")) + track->WrapStyle = atoi(token); + dt = strrchr(*fs, '.'); if (dt) { *dt = '\0';