From ec6402b7c595c3ceed6d1b8c1b75c6aa8336e052 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Sun, 17 Jul 2011 12:54:31 +0200 Subject: lavc: use designated initialisers for all codecs. It's more readable and less prone to breakage. --- libavcodec/mpc8.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'libavcodec/mpc8.c') diff --git a/libavcodec/mpc8.c b/libavcodec/mpc8.c index 3177faf1c4..0e3947b031 100644 --- a/libavcodec/mpc8.c +++ b/libavcodec/mpc8.c @@ -406,13 +406,11 @@ static int mpc8_decode_frame(AVCodecContext * avctx, } AVCodec ff_mpc8_decoder = { - "mpc8", - AVMEDIA_TYPE_AUDIO, - CODEC_ID_MUSEPACK8, - sizeof(MPCContext), - mpc8_decode_init, - NULL, - NULL, - mpc8_decode_frame, + .name = "mpc8", + .type = AVMEDIA_TYPE_AUDIO, + .id = CODEC_ID_MUSEPACK8, + .priv_data_size = sizeof(MPCContext), + .init = mpc8_decode_init, + .decode = mpc8_decode_frame, .long_name = NULL_IF_CONFIG_SMALL("Musepack SV8"), }; -- cgit v1.2.3