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/wavpack.c | |
parent | 3ad168412600e16dfaa4b41b21322a82a8535990 (diff) |
lavc: use designated initialisers for all codecs.
It's more readable and less prone to breakage.
Diffstat (limited to 'libavcodec/wavpack.c')
-rw-r--r-- | libavcodec/wavpack.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/libavcodec/wavpack.c b/libavcodec/wavpack.c index e4fe217f59..bd1e435d86 100644 --- a/libavcodec/wavpack.c +++ b/libavcodec/wavpack.c @@ -1190,14 +1190,13 @@ static int wavpack_decode_frame(AVCodecContext *avctx, } AVCodec ff_wavpack_decoder = { - "wavpack", - AVMEDIA_TYPE_AUDIO, - CODEC_ID_WAVPACK, - sizeof(WavpackContext), - wavpack_decode_init, - NULL, - wavpack_decode_end, - wavpack_decode_frame, + .name = "wavpack", + .type = AVMEDIA_TYPE_AUDIO, + .id = CODEC_ID_WAVPACK, + .priv_data_size = sizeof(WavpackContext), + .init = wavpack_decode_init, + .close = wavpack_decode_end, + .decode = wavpack_decode_frame, .capabilities = CODEC_CAP_SUBFRAMES, .long_name = NULL_IF_CONFIG_SMALL("WavPack"), }; |