aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/png_parser.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2012-06-14 17:04:00 +0000
committerPaul B Mahol <onemda@gmail.com>2012-06-14 17:04:00 +0000
commitddece75bc8d70e3cedbf2361778e867d1e1676a7 (patch)
treed02d39db5db0851340bd5069d8c82949b22204b9 /libavcodec/png_parser.c
parent79c39a98cfa3153c0fa4129a46f722ecffa638a5 (diff)
downloadffmpeg-ddece75bc8d70e3cedbf2361778e867d1e1676a7.tar.gz
png_parser: use designated initializers
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/png_parser.c')
-rw-r--r--libavcodec/png_parser.c9
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,
};