In ass_set_frame_size pixel_ratio will be set alongside aspect ratio to
the same value. This makes it possible to use libass without
explicitely specifying an aspect ratio.
if (priv->settings.frame_width != w || priv->settings.frame_height != h) {
priv->settings.frame_width = w;
priv->settings.frame_height = h;
- if (priv->settings.aspect == 0.)
+ if (priv->settings.aspect == 0.) {
priv->settings.aspect = ((double) w) / h;
+ priv->settings.pixel_ratio = ((double) w) / h;
+ }
ass_reconfigure(priv);
}
}