diff options
author | Aurelien Jacobs <aurel@gnuage.org> | 2011-09-26 00:24:38 +0200 |
---|---|---|
committer | Aurelien Jacobs <aurel@gnuage.org> | 2011-09-26 00:24:38 +0200 |
commit | 023e9960d711980c8d7ddda4e15efc379977d3c6 (patch) | |
tree | df0b599e9d8a1ee6b671a11c2710ed0fbd760099 | |
parent | f3d58404745169dad549a252b8942c3d49810a6c (diff) | |
download | ffmpeg-023e9960d711980c8d7ddda4e15efc379977d3c6.tar.gz |
mjpegenc: use named struct initializers
-rw-r--r-- | libavcodec/mjpegenc.c | 14 |
1 files 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}, }; |