From ddece75bc8d70e3cedbf2361778e867d1e1676a7 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Thu, 14 Jun 2012 17:04:00 +0000 Subject: [PATCH] png_parser: use designated initializers Signed-off-by: Paul B Mahol --- libavcodec/png_parser.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/libavcodec/png_parser.c b/libavcodec/png_parser.c index 47056fa251..722889bdeb 100644 --- a/libavcodec/png_parser.c +++ b/libavcodec/png_parser.c @@ -115,9 +115,8 @@ flush: } AVCodecParser ff_png_parser = { - { CODEC_ID_PNG }, - sizeof(PNGParseContext), - NULL, - png_parse, - ff_parse_close, + .codec_ids = { CODEC_ID_PNG }, + .priv_data_size = sizeof(PNGParseContext), + .parser_parse = png_parse, + .parser_close = ff_parse_close, };