From dfc2c4d900e48fa788ad9364ac408c01cfb62b94 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Sat, 16 Jul 2011 22:18:12 +0200 Subject: lavf: use designated initialisers for all (de)muxers. It's more readable and less prone to breakage. --- libavformat/crcenc.c | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'libavformat/crcenc.c') diff --git a/libavformat/crcenc.c b/libavformat/crcenc.c index 55c99d9d88..ae688e4f07 100644 --- a/libavformat/crcenc.c +++ b/libavformat/crcenc.c @@ -55,14 +55,13 @@ static int crc_write_trailer(struct AVFormatContext *s) } AVOutputFormat ff_crc_muxer = { - "crc", - NULL_IF_CONFIG_SMALL("CRC testing format"), - NULL, - "", - sizeof(CRCState), - CODEC_ID_PCM_S16LE, - CODEC_ID_RAWVIDEO, - crc_write_header, - crc_write_packet, - crc_write_trailer, + .name = "crc", + .long_name = NULL_IF_CONFIG_SMALL("CRC testing format"), + .extensions = "", + .priv_data_size = sizeof(CRCState), + .audio_codec = CODEC_ID_PCM_S16LE, + .video_codec = CODEC_ID_RAWVIDEO, + .write_header = crc_write_header, + .write_packet = crc_write_packet, + .write_trailer = crc_write_trailer, }; -- cgit v1.2.3