swscale: use designated initializers for AVClass

Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
Paul B Mahol 2012-06-22 02:34:34 +00:00
parent 2fa5d8f234
commit 81416c2f64
1 changed files with 5 additions and 1 deletions

View File

@ -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)
{