]> git.sesse.net Git - vlc/commitdiff
Should fix another bunch of: (near initialization for `fmt*') warnings.
authorJean-Baptiste Kempf <jb@videolan.org>
Wed, 16 May 2007 19:09:04 +0000 (19:09 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 16 May 2007 19:09:04 +0000 (19:09 +0000)
modules/video_filter/opencv_wrapper.c
modules/video_filter/psychedelic.c
modules/video_filter/puzzle.c
modules/visualization/goom.c
modules/visualization/visual/visual.c

index b67e1bfb388cf2c0e8de6e4e162a956befced8c7..5ad74750148b8b11fe20527e3c4b62ce8c56ff03 100644 (file)
@@ -299,11 +299,12 @@ static int Init( vout_thread_t *p_vout )
 {
     int i_index;
     picture_t *p_pic;
-    video_format_t fmt = {0};
+    video_format_t fmt;
     vout_sys_t *p_sys = p_vout->p_sys;
     I_OUTPUTPICTURES = 0;
 
     /* Initialize the output video format */
+    memset( &fmt, 0, sizeof(video_format_t) );
     p_vout->output.i_chroma = p_vout->render.i_chroma;
     p_vout->output.i_width  = p_vout->render.i_width;
     p_vout->output.i_height = p_vout->render.i_height;
@@ -456,12 +457,14 @@ static void VlcPictureToIplImage( vout_thread_t *p_vout, picture_t *p_in )
     int planes = p_in->i_planes;    //num input video planes
     // input video size
     CvSize sz = cvSize(abs(p_in->format.i_width), abs(p_in->format.i_height));
-    video_format_t fmt_out = {0};
+    video_format_t fmt_out;
     clock_t start, finish;  //performance measures
     double  duration;
     int i = 0;
     vout_sys_t* p_sys = p_vout->p_sys;
 
+    memset( &fmt_out, 0, sizeof(video_format_t) );
+
     start = clock();
 
     //do scale / color conversion according to p_sys config
index 8dedec189765b4d78c3ad6c89a668069b3b4b210..cb6bfc93f40ee6194786d88d743d6ba3404c20f2 100644 (file)
@@ -135,7 +135,8 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
     uint8_t u,v;
 
     picture_t *p_converted;
-    video_format_t fmt_out = {0};
+    video_format_t fmt_out;
+    memset( &fmt_out, 0, sizeof(video_format_t) );
     fmt_out.p_palette = NULL;
 
     if( !p_pic ) return NULL;
index 0c79ca496e7b3abc842974a43b130defe16acdcb..b6384154b64e07883c8f36b19be5a5f3dd01a332 100644 (file)
@@ -349,7 +349,8 @@ static void Render( vout_thread_t *p_vout, picture_t *p_pic )
 {
     picture_t *p_outpic;
 
-    //video_format_t fmt_out = {0};
+    //video_format_t fmt_out;
+    // memset( &fmt_out, 0, sizeof(video_format_t) );
     //picture_t *p_converted;
 
     int i_plane;
index 3d7070c906cf5f8fb2931b726b8a9f704e2326d3..888aeaa2128f30f8013c5e668f2906f58e4e2717 100644 (file)
@@ -131,7 +131,8 @@ static int Open( vlc_object_t *p_this )
     aout_filter_sys_t *p_sys;
     goom_thread_t     *p_thread;
     vlc_value_t       width, height;
-    video_format_t    fmt = {0};
+    video_format_t    fmt;
+
 
     if ( p_filter->input.i_format != VLC_FOURCC('f','l','3','2' )
          || p_filter->output.i_format != VLC_FOURCC('f','l','3','2') )
@@ -161,6 +162,8 @@ static int Open( vlc_object_t *p_this )
     var_Create( p_thread, "goom-height", VLC_VAR_INTEGER|VLC_VAR_DOINHERIT );
     var_Get( p_thread, "goom-height", &height );
 
+    memset( &fmt, 0, sizeof(video_format_t) );
+
     fmt.i_width = fmt.i_visible_width = width.i_int;
     fmt.i_height = fmt.i_visible_height = height.i_int;
     fmt.i_chroma = VLC_FOURCC('R','V','3','2');
index 405dee81b6e541faf65770aae5ee70afda57684c..700827a4796e54507cf8b226310bcd69be0e21d7 100644 (file)
@@ -188,7 +188,8 @@ static int Open( vlc_object_t *p_this )
     vlc_value_t        val;
 
     char *psz_effects, *psz_parser;
-    video_format_t fmt = {0};
+    video_format_t fmt;
+
 
     if( ( p_filter->input.i_format != VLC_FOURCC('f','l','3','2') &&
           p_filter->input.i_format != VLC_FOURCC('f','i','3','2') ) )
@@ -302,6 +303,8 @@ static int Open( vlc_object_t *p_this )
     }
 
     /* Open the video output */
+    memset( &fmt, 0, sizeof(video_format_t) );
+
     fmt.i_width = fmt.i_visible_width = p_sys->i_width;
     fmt.i_height = fmt.i_visible_height = p_sys->i_height;
     fmt.i_chroma = VLC_FOURCC('I','4','2','0');