osd_libass: don't use deprecated ass_set_aspect_ratio

This commit is contained in:
Oneric 2020-08-28 13:55:20 +00:00 committed by wm4
parent fc6c209cbd
commit 7fa4ce35e7
1 changed files with 2 additions and 2 deletions

View File

@ -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);