[vlc-commits] freetype: Fix aspect ratio
Hugo Beauzée-Luyssen
git at videolan.org
Tue Feb 21 17:36:11 CET 2017
vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Tue Feb 21 17:35:11 2017 +0100| [151e802223b18ae3ebf2e25264a17727e8143058] | committer: Hugo Beauzée-Luyssen
freetype: Fix aspect ratio
Fix #18034
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=151e802223b18ae3ebf2e25264a17727e8143058
---
modules/text_renderer/freetype/freetype.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules/text_renderer/freetype/freetype.c b/modules/text_renderer/freetype/freetype.c
index 4f06894..76a60fe 100644
--- a/modules/text_renderer/freetype/freetype.c
+++ b/modules/text_renderer/freetype/freetype.c
@@ -424,6 +424,7 @@ static int RenderYUVP( filter_t *p_filter, subpicture_region_t *p_region,
fmt.i_visible_width = p_bbox->xMax - p_bbox->xMin + 4;
fmt.i_height =
fmt.i_visible_height = p_bbox->yMax - p_bbox->yMin + 4;
+ fmt.i_sar_num = fmt.i_sar_den = 1;
assert( !p_region->p_picture );
p_region->p_picture = picture_NewFromFormat( &fmt );
@@ -824,6 +825,7 @@ static inline int RenderAXYZ( filter_t *p_filter,
fmt.i_visible_width = i_text_width + 2 * i_margin;
fmt.i_height =
fmt.i_visible_height = i_text_height + 2 * i_margin;
+ fmt.i_sar_num = fmt.i_sar_den = 1;
picture_t *p_picture = p_region->p_picture = picture_NewFromFormat( &fmt );
if( !p_region->p_picture )
More information about the vlc-commits
mailing list