Fix compiler warning
authorRémi Denis-Courmont <rem@videolan.org>
Thu, 5 Apr 2007 15:29:32 +0000 (15:29 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Thu, 5 Apr 2007 15:29:32 +0000 (15:29 +0000)
modules/video_output/image.c

index 05f8a6c..1b6096f 100644 (file)
@@ -268,12 +268,15 @@ static void Destroy( vlc_object_t *p_this )
  *****************************************************************************/
 static void Display( vout_thread_t *p_vout, picture_t *p_pic )
 {
-    video_format_t fmt_in = {0}, fmt_out = {0};
+    video_format_t fmt_in, fmt_out;
 
     char *psz_filename;
     char *psz_prefix;
     char *psz_tmp;
 
+    memset (&fmt_in, 0, sizeof (fmt_in));
+    memset (&fmt_out, 0, sizeof (fmt_out));
+
     if( p_vout->p_sys->i_frames % p_vout->p_sys->i_ratio != 0 )
     {
         p_vout->p_sys->i_frames++;