Fix \t(\frz) handling.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22226 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
eugeni 2007-02-15 21:51:51 +00:00
parent 42cfb2bb4d
commit e802fdf790
1 changed files with 2 additions and 4 deletions

View File

@ -773,12 +773,10 @@ static char* parse_tag(char* p, double pwr) {
mystrtod(&p, &val);
mp_msg(MSGT_ASS, MSGL_V, "frx/fry unimplemented \n");
} else if (mystrcmp(&p, "frz") || mystrcmp(&p, "fr")) {
double angle;
double val;
mystrtod(&p, &val);
mp_msg(MSGT_ASS, MSGL_DBG2, "setting rotation to %.2f\n", val * pwr);
angle = M_PI * val / 180;
render_context.rotation = angle * pwr;
val *= M_PI / 180;
render_context.rotation = val * pwr + render_context.rotation * (1-pwr);
} else if (mystrcmp(&p, "fn")) {
char* start = p;
char* family;