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/gif.c | |
parent | 3ad168412600e16dfaa4b41b21322a82a8535990 (diff) |
lavc: use designated initialisers for all codecs.
It's more readable and less prone to breakage.
Diffstat (limited to 'libavcodec/gif.c')
-rw-r--r-- | libavcodec/gif.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libavcodec/gif.c b/libavcodec/gif.c index a34d710a10..c7e7bcd185 100644 --- a/libavcodec/gif.c +++ b/libavcodec/gif.c @@ -167,13 +167,13 @@ static int gif_encode_close(AVCodecContext *avctx) } AVCodec ff_gif_encoder = { - "gif", - AVMEDIA_TYPE_VIDEO, - CODEC_ID_GIF, - sizeof(GIFContext), - gif_encode_init, - gif_encode_frame, - gif_encode_close, + .name = "gif", + .type = AVMEDIA_TYPE_VIDEO, + .id = CODEC_ID_GIF, + .priv_data_size = sizeof(GIFContext), + .init = gif_encode_init, + .encode = gif_encode_frame, + .close = gif_encode_close, .pix_fmts= (const enum PixelFormat[]){PIX_FMT_RGB8, PIX_FMT_BGR8, PIX_FMT_RGB4_BYTE, PIX_FMT_BGR4_BYTE, PIX_FMT_GRAY8, PIX_FMT_PAL8, PIX_FMT_NONE}, .long_name= NULL_IF_CONFIG_SMALL("GIF (Graphics Interchange Format)"), }; |