Skip to content
Snippets Groups Projects
Commit b06f9530 authored by Johannes Kauffmann's avatar Johannes Kauffmann Committed by Steve Lhomme
Browse files

libass: fix ass_set_aspect_ratio deprecation

ass_set_pixel_aspect is available since libass 0.10.2.
parent eae903d8
No related branches found
No related tags found
1 merge request!4729libass: fix ass_set_aspect_ratio deprecation
Pipeline #423461 passed with stage
in 30 minutes and 31 seconds
......@@ -438,7 +438,11 @@ static void SubpictureUpdate( subpicture_t *p_subpic,
#endif
const double src_ratio = (double)p_fmt_src->i_visible_width / p_fmt_src->i_visible_height;
const double dst_ratio = (double)p_fmt_dst->i_visible_width / p_fmt_dst->i_visible_height;
#if LIBASS_VERSION >= 0x01020000
ass_set_pixel_aspect( p_sys->p_renderer, dst_ratio / src_ratio );
#else
ass_set_aspect_ratio( p_sys->p_renderer, dst_ratio / src_ratio, 1 );
#endif
}
/* */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment