From 4a7a1b7def03051e16a3ffbbe51d41f227aea0fd Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Fri, 29 Apr 2011 11:30:02 +0200 Subject: lavf: use designated initializers for AVClasses. --- libavformat/http.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'libavformat/http.c') diff --git a/libavformat/http.c b/libavformat/http.c index 7d59152409..9cef0a6abc 100644 --- a/libavformat/http.c +++ b/libavformat/http.c @@ -58,7 +58,10 @@ static const AVOption options[] = { {NULL} }; static const AVClass httpcontext_class = { - "HTTP", av_default_item_name, options, LIBAVUTIL_VERSION_INT + .class_name = "HTTP", + .item_name = av_default_item_name, + .option = options, + .version = LIBAVUTIL_VERSION_INT, }; static int http_connect(URLContext *h, const char *path, const char *hoststr, -- cgit v1.2.1 From 85770f2a2651497861ed938efcd0df3696ff5e45 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Sat, 30 Apr 2011 07:43:26 +0200 Subject: AVOptions: make default_val a union, as proposed in AVOption2. This breaks API and ABI. --- libavformat/http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat/http.c') diff --git a/libavformat/http.c b/libavformat/http.c index 9cef0a6abc..971b74c876 100644 --- a/libavformat/http.c +++ b/libavformat/http.c @@ -54,7 +54,7 @@ typedef struct { #define OFFSET(x) offsetof(HTTPContext, x) static const AVOption options[] = { -{"chunksize", "use chunked transfer-encoding for posts, -1 disables it, 0 enables it", OFFSET(chunksize), FF_OPT_TYPE_INT64, 0, -1, 0 }, /* Default to 0, for chunked POSTs */ +{"chunksize", "use chunked transfer-encoding for posts, -1 disables it, 0 enables it", OFFSET(chunksize), FF_OPT_TYPE_INT64, {.i64 = 0}, -1, 0 }, /* Default to 0, for chunked POSTs */ {NULL} }; static const AVClass httpcontext_class = { -- cgit v1.2.1