]> git.sesse.net Git - vlc/blobdiff - modules/video_filter/crop.c
Fix another bunch of: (near initialization for `fmt.i_aspect') warnings.
[vlc] / modules / video_filter / crop.c
index 9e16a6e771135fd7c783ddd7666d0b02fa33880b..bb049f6025d19898d7ed647cdaa43a6f188a8975 100644 (file)
@@ -37,7 +37,7 @@
 
 #define BEST_AUTOCROP 1
 #ifdef BEST_AUTOCROP
-    #define RATIO_MAX 15000  // 10*4/3 for a 360°
+    #define RATIO_MAX 15000  // 10*4/3 for a 360
 #endif
 
 /*****************************************************************************
@@ -203,9 +203,10 @@ static int Init( vout_thread_t *p_vout )
     int   i_index;
     char *psz_var;
     picture_t *p_pic;
-    video_format_t fmt = {0};
+    video_format_t fmt;
 
     I_OUTPUTPICTURES = 0;
+    memset( &fmt, 0, sizeof(video_format_t) );
 
     p_vout->p_sys->i_lastchange = 0;
     p_vout->p_sys->b_changed = VLC_FALSE;
@@ -436,13 +437,15 @@ static void Destroy( vlc_object_t *p_this )
  *****************************************************************************/
 static int Manage( vout_thread_t *p_vout )
 {
-    video_format_t fmt = {0};
+    video_format_t fmt;
 
     if( !p_vout->p_sys->b_changed )
     {
         return VLC_SUCCESS;
     }
 
+    memset( &fmt, 0, sizeof(video_format_t) );
+
 #ifdef BEST_AUTOCROP
     msg_Dbg( p_vout, "cropping at %ix%i+%i+%i, %sautocropping",
                      p_vout->p_sys->i_width, p_vout->p_sys->i_height,