[vlc-commits] telx/zvbi: initialize aspect ratio
Rafaël Carré
git at videolan.org
Fri Nov 7 14:14:57 CET 2014
vlc | branch: master | Rafaël Carré <funman at videolan.org> | Fri Nov 7 12:48:37 2014 +0100| [29a4015294b64c2439df12862a38a1c971a1ccbd] | committer: Rafaël Carré
telx/zvbi: initialize aspect ratio
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=29a4015294b64c2439df12862a38a1c971a1ccbd
---
modules/codec/telx.c | 3 +--
modules/codec/zvbi.c | 5 +----
2 files changed, 2 insertions(+), 6 deletions(-)
diff --git a/modules/codec/telx.c b/modules/codec/telx.c
index 9e4228b..3b221fb 100644
--- a/modules/codec/telx.c
+++ b/modules/codec/telx.c
@@ -693,8 +693,7 @@ static subpicture_t *Decode( decoder_t *p_dec, block_t **pp_block )
}
/* Create a new subpicture region */
- memset( &fmt, 0, sizeof(video_format_t) );
- fmt.i_chroma = VLC_CODEC_TEXT;
+ video_format_Init(&fmt, VLC_CODEC_TEXT);
fmt.i_width = fmt.i_height = 0;
fmt.i_x_offset = fmt.i_y_offset = 0;
p_spu->p_region = subpicture_region_New( &fmt );
diff --git a/modules/codec/zvbi.c b/modules/codec/zvbi.c
index 2d2d32f..1331e09 100644
--- a/modules/codec/zvbi.c
+++ b/modules/codec/zvbi.c
@@ -503,10 +503,7 @@ static subpicture_t *Subpicture( decoder_t *p_dec, video_format_t *p_fmt,
return NULL;
}
- memset( &fmt, 0, sizeof(video_format_t) );
- fmt.i_chroma = b_text ? VLC_CODEC_TEXT : VLC_CODEC_RGBA;
- fmt.i_sar_num = 0;
- fmt.i_sar_den = 1;
+ video_format_Init(&fmt, b_text ? VLC_CODEC_TEXT : VLC_CODEC_RGBA);
if( b_text )
{
fmt.i_bits_per_pixel = 0;
More information about the vlc-commits
mailing list