mirror of
https://github.com/mpv-player/mpv
synced 2025-01-18 13:14:36 +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:
parent
42cfb2bb4d
commit
e802fdf790
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user