]> git.sesse.net Git - ffmpeg/commitdiff
libavcodec/utils: Add braces to shut up gcc warnings
authorDiego Biurrun <diego@biurrun.de>
Fri, 28 Dec 2012 18:06:04 +0000 (19:06 +0100)
committerDiego Biurrun <diego@biurrun.de>
Sun, 30 Dec 2012 00:52:04 +0000 (01:52 +0100)
libavcodec/utils.c:1050:5: warning: missing braces around initializer [-Wmissing-braces]
libavcodec/utils.c:1314:5: warning: missing braces around initializer [-Wmissing-braces]

libavcodec/utils.c

index b226ac0efe6990a107adc95ba5c19d0557c057b3..23f2ac481a00d73e21019096b9152d5e1926eae0 100644 (file)
@@ -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) {