forked from mia/Aegisub
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:
parent
2c2f85a93d
commit
5731efc46a
1 changed files with 2 additions and 5 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue