opencore-amr: Add missing initializer braces to shut up gcc warning.
authorDiego Biurrun <diego@biurrun.de>
Tue, 14 Jun 2011 22:04:48 +0000 (00:04 +0200)
committerDiego Biurrun <diego@biurrun.de>
Tue, 5 Jul 2011 18:16:38 +0000 (20:16 +0200)
This fixes the warning:
libavcodec/libopencore-amr.c:91: warning: missing braces around initializer

libavcodec/libopencore-amr.c

index cf8bdbbcb8f8fe13fc7d66b37a4ed99b4a0b26fa..edf372ffad944d26cc8360f244725fc908b2c989 100644 (file)
@@ -88,7 +88,7 @@ typedef struct AMRContext {
 } AMRContext;
 
 static const AVOption options[] = {
-    { "dtx", "Allow DTX (generate comfort noise)", offsetof(AMRContext, enc_dtx), FF_OPT_TYPE_INT, 0, 0, 1, AV_OPT_FLAG_AUDIO_PARAM | AV_OPT_FLAG_ENCODING_PARAM },
+    { "dtx", "Allow DTX (generate comfort noise)", offsetof(AMRContext, enc_dtx), FF_OPT_TYPE_INT, { 0 }, 0, 1, AV_OPT_FLAG_AUDIO_PARAM | AV_OPT_FLAG_ENCODING_PARAM },
     { NULL }
 };