From 023e9960d711980c8d7ddda4e15efc379977d3c6 Mon Sep 17 00:00:00 2001 From: Aurelien Jacobs Date: Mon, 26 Sep 2011 00:24:38 +0200 Subject: [PATCH] mjpegenc: use named struct initializers --- libavcodec/mjpegenc.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/libavcodec/mjpegenc.c b/libavcodec/mjpegenc.c index 91a119e931..228b616f65 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}, };