From ba10207bbe5ebd97b5afc3f19baf4a1ad8f974d5 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Fri, 30 Dec 2011 20:00:53 +0100 Subject: Use more designated initializers. Also remove some pointless NULL/0 assigments. C++ code must be left as it is because named struct initializers are not supported by C++ standard. --- libavformat/mkvtimestamp_v2.c | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'libavformat/mkvtimestamp_v2.c') diff --git a/libavformat/mkvtimestamp_v2.c b/libavformat/mkvtimestamp_v2.c index f120460057..469b75db41 100644 --- a/libavformat/mkvtimestamp_v2.c +++ b/libavformat/mkvtimestamp_v2.c @@ -42,13 +42,10 @@ static int write_packet(AVFormatContext *s, AVPacket *pkt) } AVOutputFormat ff_mkvtimestamp_v2_muxer = { - "mkvtimestamp_v2", - NULL_IF_CONFIG_SMALL("extract pts as timecode v2 format, as defined by mkvtoolnix"), - NULL, - "", - 0, - CODEC_ID_NONE, - CODEC_ID_RAWVIDEO, - write_header, - write_packet, + .name = "mkvtimestamp_v2", + .long_name = NULL_IF_CONFIG_SMALL("extract pts as timecode v2 format, as defined by mkvtoolnix"), + .audio_codec = CODEC_ID_NONE, + .video_codec = CODEC_ID_RAWVIDEO, + .write_header = write_header, + .write_packet = write_packet, }; -- cgit v1.2.3