From 81416c2f64415cfa47a21c13f8142b73094a2887 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Fri, 22 Jun 2012 02:34:34 +0000 Subject: [PATCH] swscale: use designated initializers for AVClass Signed-off-by: Paul B Mahol --- libswscale/options.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libswscale/options.c b/libswscale/options.c index ade9888d35..a396a58f40 100644 --- a/libswscale/options.c +++ b/libswscale/options.c @@ -66,7 +66,11 @@ static const AVOption options[] = { { NULL } }; -const AVClass sws_context_class = { "SWScaler", sws_context_to_name, options }; +const AVClass sws_context_class = { + .class_name = "SWScaler", + .item_name = sws_context_to_name, + .option = options, +}; const AVClass *sws_get_class(void) {