[vlc-commits] text_renderer: svg: fix rendering
Francois Cartegnie
git at videolan.org
Tue Dec 6 20:31:48 CET 2016
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Dec 6 20:26:02 2016 +0100| [743c2a28acac811d71fe738012181184380c712c] | committer: Francois Cartegnie
text_renderer: svg: fix rendering
fmt size is saved but first call is always 32x32
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=743c2a28acac811d71fe738012181184380c712c
---
modules/text_renderer/svg.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/text_renderer/svg.c b/modules/text_renderer/svg.c
index 71f2492..5a02641 100644
--- a/modules/text_renderer/svg.c
+++ b/modules/text_renderer/svg.c
@@ -478,8 +478,8 @@ static int RenderText( filter_t *p_filter, subpicture_region_t *p_region_out,
}
snprintf( p_svg->psz_text, length, psz_template, psz_string );
}
- p_svg->i_width = p_sys->i_width;
- p_svg->i_height = p_sys->i_height;
+ p_svg->i_width = p_sys->i_width = p_filter->fmt_out.video.i_width;
+ p_svg->i_height = p_sys->i_height = p_filter->fmt_out.video.i_height;
p_svg->i_chroma = VLC_CODEC_YUVA;
/* Render the SVG.
More information about the vlc-commits
mailing list