diff options
author | Anton Khirnov <anton@khirnov.net> | 2011-07-17 12:54:31 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2011-07-29 08:42:34 +0200 |
commit | ec6402b7c595c3ceed6d1b8c1b75c6aa8336e052 (patch) | |
tree | b0ac16ae01c2bb355766ae164a1b44fc88617750 /libavcodec/xsubdec.c | |
parent | 3ad168412600e16dfaa4b41b21322a82a8535990 (diff) | |
download | ffmpeg-ec6402b7c595c3ceed6d1b8c1b75c6aa8336e052.tar.gz |
lavc: use designated initialisers for all codecs.
It's more readable and less prone to breakage.
Diffstat (limited to 'libavcodec/xsubdec.c')
-rw-r--r-- | libavcodec/xsubdec.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/libavcodec/xsubdec.c b/libavcodec/xsubdec.c index 4afefac2c4..0791fdd05c 100644 --- a/libavcodec/xsubdec.c +++ b/libavcodec/xsubdec.c @@ -134,13 +134,10 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, } AVCodec ff_xsub_decoder = { - "xsub", - AVMEDIA_TYPE_SUBTITLE, - CODEC_ID_XSUB, - 0, - decode_init, - NULL, - NULL, - decode_frame, + .name = "xsub", + .type = AVMEDIA_TYPE_SUBTITLE, + .id = CODEC_ID_XSUB, + .init = decode_init, + .decode = decode_frame, .long_name = NULL_IF_CONFIG_SMALL("XSUB"), }; |