mjpegenc: use named struct initializers

This commit is contained in:
Aurelien Jacobs 2011-09-26 00:24:38 +02:00
parent f3d5840474
commit 023e9960d7
1 changed files with 7 additions and 7 deletions

View File

@ -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},
};