Commit 94cc428d authored by Jean-Paul Saman's avatar Jean-Paul Saman

Fix another bunch of: (near initialization for `fmt.i_aspect') warnings.

parent b7621186
...@@ -217,9 +217,10 @@ static int Init( vout_thread_t *p_vout ) ...@@ -217,9 +217,10 @@ static int Init( vout_thread_t *p_vout )
int i_index, i_vout; int i_index, i_vout;
picture_t *p_pic; picture_t *p_pic;
char *psz_default_vout; char *psz_default_vout;
video_format_t fmt = {0}; video_format_t fmt;
I_OUTPUTPICTURES = 0; I_OUTPUTPICTURES = 0;
memset( &fmt, 0, sizeof(video_format_t) );
/* Initialize the output structure */ /* Initialize the output structure */
p_vout->output.i_chroma = p_vout->render.i_chroma; p_vout->output.i_chroma = p_vout->render.i_chroma;
......
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
#define BEST_AUTOCROP 1 #define BEST_AUTOCROP 1
#ifdef BEST_AUTOCROP #ifdef BEST_AUTOCROP
#define RATIO_MAX 15000 // 10*4/3 for a 360 #define RATIO_MAX 15000 // 10*4/3 for a 360
#endif #endif
/***************************************************************************** /*****************************************************************************
...@@ -203,9 +203,10 @@ static int Init( vout_thread_t *p_vout ) ...@@ -203,9 +203,10 @@ static int Init( vout_thread_t *p_vout )
int i_index; int i_index;
char *psz_var; char *psz_var;
picture_t *p_pic; picture_t *p_pic;
video_format_t fmt = {0}; video_format_t fmt;
I_OUTPUTPICTURES = 0; I_OUTPUTPICTURES = 0;
memset( &fmt, 0, sizeof(video_format_t) );
p_vout->p_sys->i_lastchange = 0; p_vout->p_sys->i_lastchange = 0;
p_vout->p_sys->b_changed = VLC_FALSE; p_vout->p_sys->b_changed = VLC_FALSE;
...@@ -436,13 +437,15 @@ static void Destroy( vlc_object_t *p_this ) ...@@ -436,13 +437,15 @@ static void Destroy( vlc_object_t *p_this )
*****************************************************************************/ *****************************************************************************/
static int Manage( vout_thread_t *p_vout ) static int Manage( vout_thread_t *p_vout )
{ {
video_format_t fmt = {0}; video_format_t fmt;
if( !p_vout->p_sys->b_changed ) if( !p_vout->p_sys->b_changed )
{ {
return VLC_SUCCESS; return VLC_SUCCESS;
} }
memset( &fmt, 0, sizeof(video_format_t) );
#ifdef BEST_AUTOCROP #ifdef BEST_AUTOCROP
msg_Dbg( p_vout, "cropping at %ix%i+%i+%i, %sautocropping", msg_Dbg( p_vout, "cropping at %ix%i+%i+%i, %sautocropping",
p_vout->p_sys->i_width, p_vout->p_sys->i_height, p_vout->p_sys->i_width, p_vout->p_sys->i_height,
......
...@@ -171,7 +171,11 @@ static picture_t *LoadImage( vlc_object_t *p_this, char *psz_filename ) ...@@ -171,7 +171,11 @@ static picture_t *LoadImage( vlc_object_t *p_this, char *psz_filename )
{ {
picture_t *p_pic; picture_t *p_pic;
image_handler_t *p_image; image_handler_t *p_image;
video_format_t fmt_in = {0}, fmt_out = {0}; video_format_t fmt_in;
video_format_t fmt_out;
memset( &fmt_in, 0, sizeof(video_format_t) );
memset( &fmt_out, 0, sizeof(video_format_t) );
fmt_out.i_chroma = VLC_FOURCC('Y','U','V','A'); fmt_out.i_chroma = VLC_FOURCC('Y','U','V','A');
p_image = image_HandlerCreate( p_this ); p_image = image_HandlerCreate( p_this );
...@@ -361,11 +365,11 @@ static int Init( vout_thread_t *p_vout ) ...@@ -361,11 +365,11 @@ static int Init( vout_thread_t *p_vout )
vout_sys_t *p_sys = p_vout->p_sys; vout_sys_t *p_sys = p_vout->p_sys;
picture_t *p_pic; picture_t *p_pic;
int i_index; int i_index;
video_format_t fmt = {0}; video_format_t fmt;
logo_list_t *p_logo_list = p_sys->p_logo_list; logo_list_t *p_logo_list = p_sys->p_logo_list;
I_OUTPUTPICTURES = 0; I_OUTPUTPICTURES = 0;
memset( &fmt, 0, sizeof(video_format_t) );
/* adjust index to the next logo */ /* adjust index to the next logo */
p_logo_list->i_counter = p_logo_list->i_counter =
......
...@@ -189,9 +189,10 @@ static int Init( vout_thread_t *p_vout ) ...@@ -189,9 +189,10 @@ static int Init( vout_thread_t *p_vout )
{ {
int i_index; int i_index;
picture_t *p_pic; picture_t *p_pic;
video_format_t fmt = {0}; video_format_t fmt;
I_OUTPUTPICTURES = 0; I_OUTPUTPICTURES = 0;
memset( &fmt, 0, sizeof(video_format_t) );
/* Initialize the output structure */ /* Initialize the output structure */
p_vout->output.i_chroma = p_vout->render.i_chroma; p_vout->output.i_chroma = p_vout->render.i_chroma;
......
...@@ -241,7 +241,7 @@ static int Init( vout_thread_t *p_vout ) ...@@ -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; int i_index, i_row, i_col, i_width, i_height, i_left, i_top;
unsigned int i_target_width,i_target_height; unsigned int i_target_width,i_target_height;
picture_t *p_pic; picture_t *p_pic;
video_format_t fmt = {0}; video_format_t fmt;
int i_aspect = 4*VOUT_ASPECT_FACTOR/3; int i_aspect = 4*VOUT_ASPECT_FACTOR/3;
int i_align = 0; int i_align = 0;
unsigned int i_hstart, i_hend, i_vstart, i_vend; unsigned int i_hstart, i_hend, i_vstart, i_vend;
...@@ -250,6 +250,8 @@ static int Init( vout_thread_t *p_vout ) ...@@ -250,6 +250,8 @@ static int Init( vout_thread_t *p_vout )
int i_vstart_rounded = 0, i_hstart_rounded = 0; int i_vstart_rounded = 0, i_hstart_rounded = 0;
char *psz_aspect; char *psz_aspect;
memset( &fmt, 0, sizeof(video_format_t) );
psz_aspect = var_CreateGetNonEmptyString( p_vout, psz_aspect = var_CreateGetNonEmptyString( p_vout,
CFG_PREFIX "element-aspect" ); CFG_PREFIX "element-aspect" );
if( psz_aspect && *psz_aspect ) if( psz_aspect && *psz_aspect )
......
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