diff options
author | Oneric <oneric@oneric.stub> | 2022-10-07 22:16:36 +0200 |
---|---|---|
committer | Oneric <oneric@oneric.stub> | 2022-10-07 22:16:36 +0200 |
commit | 3c693b4a55005571f8426449f2bba3b2fde7828f (patch) | |
tree | 60327ffdbe4d512e37d5173da7ab2192c1404c84 | |
parent | 44f6532daf5eb13cb1aa95f5449a77b5df1dd85b (diff) | |
download | libass-3c693b4a55005571f8426449f2bba3b2fde7828f.tar.bz2 libass-3c693b4a55005571f8426449f2bba3b2fde7828f.tar.xz |
render: do not default PAR based on PlayRes
This undoes a change which slipped in with
d8f056158abe9d671c53f430ecd21022cc983d47 and caused
PAR to default to a value derived from PlayRes* and
the content area of the rendering frame instead of 1.
-rw-r--r-- | libass/ass_render.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libass/ass_render.c b/libass/ass_render.c index a076406..7e452df 100644 --- a/libass/ass_render.c +++ b/libass/ass_render.c @@ -3018,7 +3018,8 @@ ass_start_frame(ASS_Renderer *render_priv, ASS_Track *track, // PAR correction double par = render_priv->settings.par; if (par == 0.) { - if (render_priv->frame_content_width && render_priv->frame_content_height) { + if (render_priv->frame_content_width && render_priv->frame_content_height && + render_priv->settings.storage_width && render_priv->settings.storage_height) { double dar = ((double) render_priv->frame_content_width) / render_priv->frame_content_height; ASS_Vector layout_res = ass_layout_res(render_priv); |