[vlc-commits] text_renderer: svg: fix fmt usage
Francois Cartegnie
git at videolan.org
Tue Dec 6 20:53:33 CET 2016
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Dec 6 20:46:14 2016 +0100| [c4c3840e68efdcabdd48899dff9cd1b8fc69c58a] | committer: Francois Cartegnie
text_renderer: svg: fix fmt usage
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c4c3840e68efdcabdd48899dff9cd1b8fc69c58a
---
modules/text_renderer/svg.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/modules/text_renderer/svg.c b/modules/text_renderer/svg.c
index 5a02641..7a544c1 100644
--- a/modules/text_renderer/svg.c
+++ b/modules/text_renderer/svg.c
@@ -267,12 +267,8 @@ static int Render( filter_t *p_filter, subpicture_region_t *p_region,
/* Create a new subpicture region */
video_format_Init( &fmt, VLC_CODEC_YUVA );
- fmt.i_chroma = VLC_CODEC_YUVA;
fmt.i_width = fmt.i_visible_width = i_width;
fmt.i_height = fmt.i_visible_height = i_height;
- fmt.i_x_offset = fmt.i_y_offset = 0;
- fmt.i_sar_num = 1;
- fmt.i_sar_den = 1;
p_region->p_picture = picture_NewFromFormat( &fmt );
if( !p_region->p_picture )
@@ -280,7 +276,9 @@ static int Render( filter_t *p_filter, subpicture_region_t *p_region,
video_format_Clean( &fmt );
return VLC_EGENERIC;
}
- p_region->fmt = fmt;
+ video_format_Clean( &p_region->fmt );
+ video_format_Init( &p_region->fmt, 0 );
+ video_format_Copy( &p_region->fmt, &fmt );
p_region->i_x = p_region->i_y = 0;
p_y = p_region->p_picture->Y_PIXELS;
More information about the vlc-commits
mailing list