diff options
author | Paul B Mahol | 2011-12-30 20:00:53 +0100 |
---|---|---|
committer | Carl Eugen Hoyos | 2011-12-30 20:00:53 +0100 |
commit | ba10207bbe5ebd97b5afc3f19baf4a1ad8f974d5 (patch) | |
tree | c5602a20dc46f1f6dc9e555d0d1b1926a17cf210 /libavformat/mkvtimestamp_v2.c | |
parent | 73ba2c1e62a870c7d7b27cd8093ef39447a57903 (diff) |
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.
Diffstat (limited to 'libavformat/mkvtimestamp_v2.c')
-rw-r--r-- | libavformat/mkvtimestamp_v2.c | 15 |
1 files changed, 6 insertions, 9 deletions
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, }; |