aboutsummaryrefslogtreecommitdiffhomepage
path: root/libass
diff options
context:
space:
mode:
authorGravatar eugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-02-15 21:51:51 +0000
committerGravatar eugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-02-15 21:51:51 +0000
commite802fdf79072dd7a2738efbbad2ca1976a0fc855 (patch)
tree3b6caf4bdc027dec5b062426572d948b637870c0 /libass
parent42cfb2bb4d37883d4a06f6d62d2870393e31a695 (diff)
Fix \t(\frz) handling.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22226 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libass')
-rw-r--r--libass/ass_render.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/libass/ass_render.c b/libass/ass_render.c
index 1bd7feb981..1f7cd11615 100644
--- a/libass/ass_render.c
+++ b/libass/ass_render.c
@@ -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;