[FFmpeg-cvslog] oggenc: add missing initializer braces to shut up gcc warning.

Clément Bœsch git at videolan.org
Wed Aug 10 21:05:10 CEST 2011


ffmpeg | branch: master | Clément Bœsch <ubitux at gmail.com> | Wed Aug 10 21:03:39 2011 +0200| [9acffed9e0d7c454b7bc5c947f33cdf8cab3758c] | committer: Clément Bœsch

oggenc: add missing initializer braces to shut up gcc warning.

This fixes the warning:
    libavformat/oggenc.c:75:7: warning: missing braces around initializer [-Wmissing-braces]

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

 libavformat/oggenc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavformat/oggenc.c b/libavformat/oggenc.c
index 89f2459..73b311d 100644
--- a/libavformat/oggenc.c
+++ b/libavformat/oggenc.c
@@ -72,7 +72,7 @@ typedef struct {
 
 static const AVOption options[] = {
     { "oggpagesize", "Set preferred Ogg page size.",
-      offsetof(OGGContext, pref_size), FF_OPT_TYPE_INT, 0, 0, MAX_PAGE_SIZE, AV_OPT_FLAG_ENCODING_PARAM},
+      offsetof(OGGContext, pref_size), FF_OPT_TYPE_INT, {.dbl = 0}, 0, MAX_PAGE_SIZE, AV_OPT_FLAG_ENCODING_PARAM},
     { NULL },
 };
 



More information about the ffmpeg-cvslog mailing list