On Wed, Sep 05, 2012 at 07:52:37PM +0300, Martin Storsjö wrote:
> 
> --- a/libavutil/opt.h
> +++ b/libavutil/opt.h
> @@ -64,7 +64,7 @@
>   *   { "test_int", "This is a test option of int type.", 
> offsetof(test_struct, int_opt),
> - *     AV_OPT_TYPE_INT, { -1 }, INT_MIN, INT_MAX },
> + *     AV_OPT_TYPE_INT, {.i64 = -1 }, INT_MIN, INT_MAX },
>   *   { "test_str", "This is a test option of string type.", 
> offsetof(test_struct, str_opt),
> @@ -123,7 +123,7 @@
>   *          { "test_flags", "This is a test option of flags type.",
> - *            offsetof(child_struct, flags_opt), AV_OPT_TYPE_FLAGS, { 0 }, 
> INT_MIN, INT_MAX },
> + *            offsetof(child_struct, flags_opt), AV_OPT_TYPE_FLAGS, {.i64 = 
> 0 }, INT_MIN, INT_MAX },
>   *          { NULL },
> @@ -170,8 +170,8 @@
>   *      { "test_flags", "This is a test option of flags type.",
> - *        offsetof(child_struct, flags_opt), AV_OPT_TYPE_FLAGS, { 0 }, 
> INT_MIN, INT_MAX, "test_unit" },
> - *      { "flag1", "This is a flag with value 16", 0, AV_OPT_TYPE_CONST, { 
> 16 }, 0, 0, "test_unit" },
> + *        offsetof(child_struct, flags_opt), AV_OPT_TYPE_FLAGS, {.i64 = 0 }, 
> INT_MIN, INT_MAX, "test_unit" },
> + *      { "flag1", "This is a flag with value 16", 0, AV_OPT_TYPE_CONST, 
> {.i64 = 16 }, 0, 0, "test_unit" },

space after {

OK with that changed.

Diego
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to