diff options
author | Anton Khirnov | 2011-07-17 12:54:31 +0200 |
---|---|---|
committer | Anton Khirnov | 2011-07-29 08:42:34 +0200 |
commit | ec6402b7c595c3ceed6d1b8c1b75c6aa8336e052 (patch) | |
tree | b0ac16ae01c2bb355766ae164a1b44fc88617750 /libavcodec/mmvideo.c | |
parent | 3ad168412600e16dfaa4b41b21322a82a8535990 (diff) |
lavc: use designated initialisers for all codecs.
It's more readable and less prone to breakage.
Diffstat (limited to 'libavcodec/mmvideo.c')
-rw-r--r-- | libavcodec/mmvideo.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/libavcodec/mmvideo.c b/libavcodec/mmvideo.c index b65335e6cb..9e82ef94f9 100644 --- a/libavcodec/mmvideo.c +++ b/libavcodec/mmvideo.c @@ -214,14 +214,13 @@ static av_cold int mm_decode_end(AVCodecContext *avctx) } AVCodec ff_mmvideo_decoder = { - "mmvideo", - AVMEDIA_TYPE_VIDEO, - CODEC_ID_MMVIDEO, - sizeof(MmContext), - mm_decode_init, - NULL, - mm_decode_end, - mm_decode_frame, - CODEC_CAP_DR1, + .name = "mmvideo", + .type = AVMEDIA_TYPE_VIDEO, + .id = CODEC_ID_MMVIDEO, + .priv_data_size = sizeof(MmContext), + .init = mm_decode_init, + .close = mm_decode_end, + .decode = mm_decode_frame, + .capabilities = CODEC_CAP_DR1, .long_name = NULL_IF_CONFIG_SMALL("American Laser Games MM Video"), }; |