diff options
author | Paul B Mahol <onemda@gmail.com> | 2012-06-14 21:04:00 +0400 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2012-06-14 21:04:00 +0400 |
commit | ddece75bc8d70e3cedbf2361778e867d1e1676a7 (patch) | |
tree | d02d39db5db0851340bd5069d8c82949b22204b9 /libavcodec | |
parent | 79c39a98cfa3153c0fa4129a46f722ecffa638a5 (diff) |
png_parser: use designated initializers
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/png_parser.c | 9 |
1 files 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, }; |