]> git.sesse.net Git - vlc/blobdiff - modules/video_filter/wall.c
Fix another bunch of: (near initialization for `fmt.i_aspect') warnings.
[vlc] / modules / video_filter / wall.c
index 49a88d3829f5c8ed8f80a1867bb5cb462f411e15..4a82124651182a8dce78931c840d1a40097f32da 100644 (file)
@@ -241,7 +241,7 @@ static int Init( vout_thread_t *p_vout )
     int i_index, i_row, i_col, i_width, i_height, i_left, i_top;
     unsigned int i_target_width,i_target_height;
     picture_t *p_pic;
-    video_format_t fmt = {0};
+    video_format_t fmt;
     int i_aspect = 4*VOUT_ASPECT_FACTOR/3;
     int i_align = 0;
     unsigned int i_hstart, i_hend, i_vstart, i_vend;
@@ -250,6 +250,8 @@ static int Init( vout_thread_t *p_vout )
     int i_vstart_rounded = 0, i_hstart_rounded = 0;
     char *psz_aspect;
 
+    memset( &fmt, 0, sizeof(video_format_t) );
+
     psz_aspect = var_CreateGetNonEmptyString( p_vout,
                                               CFG_PREFIX "element-aspect" );
     if( psz_aspect && *psz_aspect )