diff options
author | Anton Khirnov <anton@khirnov.net> | 2011-07-17 14:54:31 +0400 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2011-07-29 10:42:34 +0400 |
commit | ec6402b7c595c3ceed6d1b8c1b75c6aa8336e052 (patch) | |
tree | b0ac16ae01c2bb355766ae164a1b44fc88617750 /libavcodec/libxvidff.c | |
parent | 3ad168412600e16dfaa4b41b21322a82a8535990 (diff) |
lavc: use designated initialisers for all codecs.
It's more readable and less prone to breakage.
Diffstat (limited to 'libavcodec/libxvidff.c')
-rw-r--r-- | libavcodec/libxvidff.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libavcodec/libxvidff.c b/libavcodec/libxvidff.c index 3ca4d1b2ec..526969066d 100644 --- a/libavcodec/libxvidff.c +++ b/libavcodec/libxvidff.c @@ -809,13 +809,13 @@ int xvid_ff_2pass(void *ref, int cmd, void *p1, void *p2) { * Xvid codec definition for libavcodec. */ AVCodec ff_libxvid_encoder = { - "libxvid", - AVMEDIA_TYPE_VIDEO, - CODEC_ID_MPEG4, - sizeof(struct xvid_context), - xvid_encode_init, - xvid_encode_frame, - xvid_encode_close, + .name = "libxvid", + .type = AVMEDIA_TYPE_VIDEO, + .id = CODEC_ID_MPEG4, + .priv_data_size = sizeof(struct xvid_context), + .init = xvid_encode_init, + .encode = xvid_encode_frame, + .close = xvid_encode_close, .pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE}, .long_name= NULL_IF_CONFIG_SMALL("libxvidcore MPEG-4 part 2"), }; |