Commit e03d7e7b authored by Jean-Paul Saman's avatar Jean-Paul Saman

Fix compiler warning: missing initializer

parent 61871f5f
......@@ -466,7 +466,7 @@ static struct
{ VLC_FOURCC('R','V','3','2'), PIX_FMT_RGBA32 },
{ VLC_FOURCC('G','R','E','Y'), PIX_FMT_GRAY8 },
{0}
{ 0, 0 }
};
int E_(GetFfmpegChroma)( vlc_fourcc_t i_chroma )
......@@ -1142,7 +1142,7 @@ static struct
AUDIO_ES, "WavPack" },
#endif
{0}
{ 0, 0, 0, 0 }
};
int E_(GetFfmpegCodec)( vlc_fourcc_t i_fourcc, int *pi_cat,
......
......@@ -301,7 +301,9 @@ static int MuxBlock( sout_mux_t *p_mux, sout_input_t *p_input )
block_t *p_data = block_FifoGet( p_input->p_fifo );
int i_stream = *((int *)p_input->p_sys);
AVStream *p_stream = p_sys->oc->streams[i_stream];
AVPacket pkt = {0};
AVPacket pkt;
memset( &pkt, 0, sizeof(AVPacket) );
av_init_packet(&pkt);
pkt.data = p_data->p_buffer;
......
......@@ -749,6 +749,10 @@ static int Init( vout_thread_t *p_vout )
{
for( i_col = 0; i_col < p_vout->p_sys->i_col; i_col++ )
{
video_format_t fmt;
memset( &fmt, 0, sizeof(video_format_t) );
if( i_col + 1 < p_vout->p_sys->i_col )
{
i_width = ( p_vout->render.i_width
......@@ -797,8 +801,6 @@ static int Init( vout_thread_t *p_vout )
continue;
}
video_format_t fmt = {0};
fmt.i_width = fmt.i_visible_width = p_vout->render.i_width;
fmt.i_height = fmt.i_visible_height = p_vout->render.i_height;
fmt.i_x_offset = fmt.i_y_offset = 0;
......
......@@ -55,7 +55,7 @@ static void vout_unlink_picture( decoder_t *, picture_t * );
static subpicture_t *spu_new_buffer( decoder_t * );
static void spu_del_buffer( decoder_t *, subpicture_t * );
static es_format_t null_es_format = {0};
static es_format_t null_es_format;
struct decoder_owner_sys_t
{
......@@ -396,7 +396,7 @@ static decoder_t * CreateDecoder( input_thread_t *p_input,
/* Initialize the decoder fifo */
p_dec->p_module = NULL;
memset( &null_es_format, 0, sizeof(es_format_t) );
es_format_Copy( &p_dec->fmt_in, fmt );
es_format_Copy( &p_dec->fmt_out, &null_es_format );
......
......@@ -221,16 +221,16 @@ void GetMirrorsList( update_t *p_update, vlc_bool_t b_force )
xml_t *p_xml = NULL;
xml_reader_t *p_xml_reader = NULL;
char *psz_eltname = NULL;
//char *psz_eltvalue = NULL;
char *psz_name = NULL;
char *psz_value = NULL;
struct update_mirror_t tmp_mirror = {0};
struct update_mirror_t tmp_mirror;
vlc_mutex_lock( &p_update->lock );
memset( &tmp_mirror, 0, sizeof(struct update_mirror_t));
if( p_update->b_mirrors && b_force == VLC_FALSE )
{
vlc_mutex_unlock( &p_update->lock );
......@@ -399,11 +399,14 @@ void GetFilesList( update_t *p_update, vlc_bool_t b_force )
char *psz_value = NULL;
struct update_release_t *p_release = NULL;
struct update_release_t tmp_release = {0};
struct update_file_t tmp_file = {0};
struct update_release_t tmp_release;
struct update_file_t tmp_file;
vlc_bool_t b_os = VLC_FALSE, b_arch = VLC_FALSE;
memset( &tmp_release, 0, sizeof(struct update_release_t) );
memset( &tmp_file, 0, sizeof(struct update_file_t) );
tmp_release.i_type = UPDATE_RELEASE_TYPE_STABLE;
vlc_mutex_lock( &p_update->lock );
......@@ -730,8 +733,10 @@ int CompareReleases( struct update_release_t *p1, struct update_release_t *p2 )
*/
int CompareReleaseToCurrent( struct update_release_t *p )
{
struct update_release_t c = {0};
struct update_release_t c;
int r;
memset( &c, 0, sizeof(struct update_release_t) );
c.psz_major = STRDUP( PACKAGE_VERSION_MAJOR );
c.psz_minor = STRDUP( PACKAGE_VERSION_MINOR );
c.psz_revision = STRDUP( PACKAGE_VERSION_REVISION );
......
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