From 7fa4ce35e7e037f3f7ed6b41914b12ab67b89d53 Mon Sep 17 00:00:00 2001 From: Oneric Date: Fri, 28 Aug 2020 13:55:20 +0000 Subject: osd_libass: don't use deprecated ass_set_aspect_ratio --- sub/osd_libass.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sub') diff --git a/sub/osd_libass.c b/sub/osd_libass.c index 5f9bc52f66..667431eb7b 100644 --- a/sub/osd_libass.c +++ b/sub/osd_libass.c @@ -63,7 +63,7 @@ static void create_ass_renderer(struct osd_state *osd, struct ass_state *ass) mp_ass_configure_fonts(ass->render, osd->opts->osd_style, osd->global, ass->log); - ass_set_aspect_ratio(ass->render, 1.0, 1.0); + ass_set_pixel_aspect(ass->render, 1.0); } static void destroy_ass_renderer(struct ass_state *ass) @@ -622,7 +622,7 @@ static void append_ass(struct ass_state *ass, struct mp_osd_res *res, update_playres(ass, res); ass_set_frame_size(ass->render, res->w, res->h); - ass_set_aspect_ratio(ass->render, res->display_par, 1.0); + ass_set_pixel_aspect(ass->render, res->display_par); int ass_changed; *img_list = ass_render_frame(ass->render, ass->track, 0, &ass_changed); -- cgit v1.2.3