[FFmpeg-cvslog] mjpegenc: use named struct initializers

Aurelien Jacobs git at videolan.org
Mon Sep 26 00:23:28 CEST 2011


ffmpeg | branch: master | Aurelien Jacobs <aurel at gnuage.org> | Mon Sep 26 00:24:38 2011 +0200| [023e9960d711980c8d7ddda4e15efc379977d3c6] | committer: Aurelien Jacobs

mjpegenc: use named struct initializers

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

 libavcodec/mjpegenc.c |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/libavcodec/mjpegenc.c b/libavcodec/mjpegenc.c
index 91a119e..228b616 100644
--- a/libavcodec/mjpegenc.c
+++ b/libavcodec/mjpegenc.c
@@ -483,12 +483,12 @@ AVCodec ff_mjpeg_encoder = {
 };
 
 AVCodec ff_amv_encoder = {
-    "amv",
-    AVMEDIA_TYPE_VIDEO,
-    CODEC_ID_AMV,
-    sizeof(MpegEncContext),
-    MPV_encode_init,
-    amv_encode_picture,
-    MPV_encode_end,
+    .name           = "amv",
+    .type           = AVMEDIA_TYPE_VIDEO,
+    .id             = CODEC_ID_AMV,
+    .priv_data_size = sizeof(MpegEncContext),
+    .init           = MPV_encode_init,
+    .encode         = amv_encode_picture,
+    .close          = MPV_encode_end,
     .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUVJ420P, PIX_FMT_YUVJ422P, -1},
 };



More information about the ffmpeg-cvslog mailing list