[vlc-commits] [Git][videolan/vlc][master] libass: fix ass_set_aspect_ratio deprecation
Steve Lhomme (@robUx4)
gitlab at videolan.org
Fri Jan 5 12:13:50 UTC 2024
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
b06f9530 by Johannes Kauffmann at 2024-01-05T11:43:44+00:00
libass: fix ass_set_aspect_ratio deprecation
ass_set_pixel_aspect is available since libass 0.10.2.
- - - - -
1 changed file:
- modules/codec/libass.c
Changes:
=====================================
modules/codec/libass.c
=====================================
@@ -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
}
/* */
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/b06f9530e376879171ac4e7057f591f7b9f8e822
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/b06f9530e376879171ac4e7057f591f7b9f8e822
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list