Commit 29a40152 authored by Rafaël Carré's avatar Rafaël Carré

telx/zvbi: initialize aspect ratio

parent 3ffa0a33
......@@ -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 );
......
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment