[FFmpeg-cvslog] png_parser: use designated initializers

Paul B Mahol git at videolan.org
Thu Jun 14 19:06:44 CEST 2012


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Thu Jun 14 17:04:00 2012 +0000| [ddece75bc8d70e3cedbf2361778e867d1e1676a7] | committer: Paul B Mahol

png_parser: use designated initializers

Signed-off-by: Paul B Mahol <onemda at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ddece75bc8d70e3cedbf2361778e867d1e1676a7
---

 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 47056fa..722889b 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,
 };



More information about the ffmpeg-cvslog mailing list