1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-31 04:02:06 +00:00

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

View File

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