diff options
author | Diego Biurrun <diego@biurrun.de> | 2012-12-28 19:06:04 +0100 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2012-12-30 01:52:04 +0100 |
commit | 015da965a68bdb48819dc98317888fc84eced599 (patch) | |
tree | 72635b4d9b84acf8882155e844aa73df67f1e7ec /libavcodec | |
parent | d615da60c1f95359d972a1cdf1d5e937930bda3f (diff) | |
download | ffmpeg-015da965a68bdb48819dc98317888fc84eced599.tar.gz |
libavcodec/utils: Add braces to shut up gcc warnings
libavcodec/utils.c:1050:5: warning: missing braces around initializer [-Wmissing-braces]
libavcodec/utils.c:1314:5: warning: missing braces around initializer [-Wmissing-braces]
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c index b226ac0efe..23f2ac481a 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -1047,7 +1047,7 @@ int attribute_align_arg avcodec_encode_audio(AVCodecContext *avctx, const short *samples) { AVPacket pkt; - AVFrame frame0 = { 0 }; + AVFrame frame0 = { { 0 } }; AVFrame *frame; int ret, samples_size, got_packet; @@ -1311,7 +1311,7 @@ int attribute_align_arg avcodec_decode_audio3(AVCodecContext *avctx, int16_t *sa int *frame_size_ptr, AVPacket *avpkt) { - AVFrame frame = {0}; + AVFrame frame = { { 0 } }; int ret, got_frame = 0; if (avctx->get_buffer != avcodec_default_get_buffer) { |