Apply a fix from greg:

* 'Correctly' handle font aspect ratio in the case of PlayRes(X|Y) not matching
   the video aspect ratio. (to match vsfilter)

Originally committed to SVN as r2734.
This commit is contained in:
Amar Takhar 2009-02-15 05:44:06 +00:00
parent cf936f5e12
commit 83bf4c7512
1 changed files with 2 additions and 5 deletions

View File

@ -2362,11 +2362,8 @@ static int ass_start_frame(ass_renderer_t *priv, ass_track_t* track, long long n
frame_context.orig_height / frame_context.track->PlayResY;
frame_context.border_scale = ((double)frame_context.orig_height) / frame_context.track->PlayResY;
if (frame_context.orig_width * track->PlayResY == frame_context.orig_height * track->PlayResX)
frame_context.font_scale_x = 1.;
else
frame_context.font_scale_x = ((double)(frame_context.orig_width * track->PlayResY)) / (frame_context.orig_height * track->PlayResX);
frame_context.font_scale_x = ((double)(frame_context.orig_width * track->PlayResY)) / (frame_context.orig_height * track->PlayResX);
frame_context.font_scale_x = 1.0;
priv->prev_images_root = priv->images_root;
priv->images_root = 0;