From c016bed9432aa419aa2d3014808374de0a287b69 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafa=C5=82=20Dzi=C4=99giel?= Date: Thu, 19 Nov 2020 18:03:11 +0100 Subject: [PATCH] assrender: fix smooth scaling by disabling hinting When ass hinting value is set to anything other than NONE, subtitles cannot use smooth scaling, thus all animations will jitter. The libass author warns about possibility of breaking some scripts when it is enabled, so lets do what is recommended and disable it to get the smooth scaling working. Part-of: --- subprojects/gst-plugins-bad/ext/assrender/gstassrender.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-bad/ext/assrender/gstassrender.c b/subprojects/gst-plugins-bad/ext/assrender/gstassrender.c index d921ae4..175fc06 100644 --- a/subprojects/gst-plugins-bad/ext/assrender/gstassrender.c +++ b/subprojects/gst-plugins-bad/ext/assrender/gstassrender.c @@ -923,7 +923,7 @@ gst_ass_render_negotiate (GstAssRender * render, GstCaps * caps) ass_set_pixel_aspect (render->ass_renderer, (gdouble) render->info.par_n / (gdouble) render->info.par_d); ass_set_font_scale (render->ass_renderer, 1.0); - ass_set_hinting (render->ass_renderer, ASS_HINTING_LIGHT); + ass_set_hinting (render->ass_renderer, ASS_HINTING_NONE); ass_set_fonts (render->ass_renderer, "Arial", "sans-serif", 1, NULL, 1); ass_set_fonts (render->ass_renderer, NULL, "Sans", 1, NULL, 1); -- 2.7.4