[vlc-devel] [PATCH] Fixed warnings on missed struct fields initializers
Maxim Bublis
b at codemonkey.ru
Mon Dec 2 12:55:12 CET 2013
---
modules/codec/avcodec/encoder.c | 2 +-
src/misc/fourcc.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/codec/avcodec/encoder.c b/modules/codec/avcodec/encoder.c
index bae4d3f..2c7d624 100644
--- a/modules/codec/avcodec/encoder.c
+++ b/modules/codec/avcodec/encoder.c
@@ -1135,7 +1135,7 @@ static block_t *encode_audio_buffer( encoder_t *p_enc, encoder_sys_t *p_sys, AV
{
int got_packet, i_out;
got_packet=i_out=0;
- AVPacket packet = {0};
+ AVPacket packet;
block_t *p_block = block_Alloc( p_sys->i_buffer_out );
av_init_packet( &packet );
packet.data = p_block->p_buffer;
diff --git a/src/misc/fourcc.c b/src/misc/fourcc.c
index 8cd821a..1c9bca3 100644
--- a/src/misc/fourcc.c
+++ b/src/misc/fourcc.c
@@ -2004,7 +2004,7 @@ static const struct
VLC_CODEC_VDPAU_VIDEO_444,
VLC_CODEC_VDPAU_OUTPUT, 0 }, FAKE_FMT() },
- { {0}, { 0, { 0 }, 0, 0 } }
+ { {0}, { 0, { { {0, 0}, {0, 0} } }, 0, 0 } }
};
#undef PACKED_FMT
--
1.8.3.4 (Apple Git-47)
More information about the vlc-devel
mailing list