[FFmpeg-cvslog] avidec: add missing initializer braces to shut up gcc warning.
Clément Bœsch
git at videolan.org
Wed Aug 10 21:05:09 CEST 2011
ffmpeg | branch: master | Clément Bœsch <ubitux at gmail.com> | Wed Aug 10 21:02:32 2011 +0200| [df2039f5739c4b1de869d26f9636ef38102db784] | committer: Clément Bœsch
avidec: add missing initializer braces to shut up gcc warning.
This fixes the warning:
libavformat/avidec.c:81:5: warning: missing braces around initializer [-Wmissing-braces]
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=df2039f5739c4b1de869d26f9636ef38102db784
---
libavformat/avidec.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index d454ce5..569d592 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -78,7 +78,7 @@ typedef struct {
static const AVOption options[] = {
- { "use_odml", "use odml index", offsetof(AVIContext, use_odml), FF_OPT_TYPE_INT, 1, -1, 1, AV_OPT_FLAG_DECODING_PARAM},
+ { "use_odml", "use odml index", offsetof(AVIContext, use_odml), FF_OPT_TYPE_INT, {.dbl = 1}, -1, 1, AV_OPT_FLAG_DECODING_PARAM},
{ NULL },
};
More information about the ffmpeg-cvslog
mailing list