[FFmpeg-cvslog] opencore-amr: Add missing initializer braces to shut up gcc warning.

Diego Biurrun git at videolan.org
Wed Jul 6 01:37:08 CEST 2011


ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Wed Jun 15 00:04:48 2011 +0200| [8dd52d82029febc3effd981c3107846904559c6d] | committer: Diego Biurrun

opencore-amr: Add missing initializer braces to shut up gcc warning.

This fixes the warning:
libavcodec/libopencore-amr.c:91: warning: missing braces around initializer

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8dd52d82029febc3effd981c3107846904559c6d
---

 libavcodec/libopencore-amr.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/libopencore-amr.c b/libavcodec/libopencore-amr.c
index cf8bdbb..edf372f 100644
--- a/libavcodec/libopencore-amr.c
+++ b/libavcodec/libopencore-amr.c
@@ -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 }
 };
 



More information about the ffmpeg-cvslog mailing list