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/sipr.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'libavcodec/sipr.c') diff --git a/libavcodec/sipr.c b/libavcodec/sipr.c index 2e86861706..c9fccb2d3a 100644 --- a/libavcodec/sipr.c +++ b/libavcodec/sipr.c @@ -549,13 +549,11 @@ static int sipr_decode_frame(AVCodecContext *avctx, void *datap, } AVCodec ff_sipr_decoder = { - "sipr", - AVMEDIA_TYPE_AUDIO, - CODEC_ID_SIPR, - sizeof(SiprContext), - sipr_decoder_init, - NULL, - NULL, - sipr_decode_frame, + .name = "sipr", + .type = AVMEDIA_TYPE_AUDIO, + .id = CODEC_ID_SIPR, + .priv_data_size = sizeof(SiprContext), + .init = sipr_decoder_init, + .decode = sipr_decode_frame, .long_name = NULL_IF_CONFIG_SMALL("RealAudio SIPR / ACELP.NET"), }; -- cgit v1.2.3