diff options
author | Oneric <oneric@oneric.stub> | 2020-08-28 13:55:20 +0000 |
---|---|---|
committer | wm4 <1387750+wm4@users.noreply.github.com> | 2020-08-28 19:52:48 +0200 |
commit | 7fa4ce35e7e037f3f7ed6b41914b12ab67b89d53 (patch) | |
tree | aeb79062367264f38ba3e8cd1ee0dc2174e2bbc7 /sub/osd_libass.c | |
parent | fc6c209cbd8a5077ebb444f58e31f52010a6173b (diff) | |
download | mpv-7fa4ce35e7e037f3f7ed6b41914b12ab67b89d53.tar.bz2 mpv-7fa4ce35e7e037f3f7ed6b41914b12ab67b89d53.tar.xz |
osd_libass: don't use deprecated ass_set_aspect_ratio
Diffstat (limited to 'sub/osd_libass.c')
-rw-r--r-- | sub/osd_libass.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |