int i_index, i_vout;
picture_t *p_pic;
char *psz_default_vout;
- video_format_t fmt = {0};
+ video_format_t fmt;
I_OUTPUTPICTURES = 0;
+ memset( &fmt, 0, sizeof(video_format_t) );
/* Initialize the output structure */
p_vout->output.i_chroma = p_vout->render.i_chroma;
#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
/*****************************************************************************
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;
*****************************************************************************/
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,
{
picture_t *p_pic;
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');
p_image = image_HandlerCreate( p_this );
vout_sys_t *p_sys = p_vout->p_sys;
picture_t *p_pic;
int i_index;
- video_format_t fmt = {0};
-
+ video_format_t fmt;
logo_list_t *p_logo_list = p_sys->p_logo_list;
I_OUTPUTPICTURES = 0;
+ memset( &fmt, 0, sizeof(video_format_t) );
/* adjust index to the next logo */
p_logo_list->i_counter =
{
int i_index;
picture_t *p_pic;
- video_format_t fmt = {0};
+ video_format_t fmt;
I_OUTPUTPICTURES = 0;
+ memset( &fmt, 0, sizeof(video_format_t) );
/* Initialize the output structure */
p_vout->output.i_chroma = p_vout->render.i_chroma;
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;
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 )