mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1201>
This commit is contained in:
parent
95c1f67d69
commit
c016bed943
1 changed files with 1 additions and 1 deletions
|
@ -923,7 +923,7 @@ gst_ass_render_negotiate (GstAssRender * render, GstCaps * caps)
|
||||||
ass_set_pixel_aspect (render->ass_renderer,
|
ass_set_pixel_aspect (render->ass_renderer,
|
||||||
(gdouble) render->info.par_n / (gdouble) render->info.par_d);
|
(gdouble) render->info.par_n / (gdouble) render->info.par_d);
|
||||||
ass_set_font_scale (render->ass_renderer, 1.0);
|
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, "Arial", "sans-serif", 1, NULL, 1);
|
||||||
ass_set_fonts (render->ass_renderer, NULL, "Sans", 1, NULL, 1);
|
ass_set_fonts (render->ass_renderer, NULL, "Sans", 1, NULL, 1);
|
||||||
|
|
Loading…
Reference in a new issue