diff options
author | Diego Biurrun <diego@biurrun.de> | 2011-09-23 22:50:11 +0400 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2011-09-24 14:11:17 +0400 |
commit | 30b4ee7901ec5dbe24f1c75c0c0b43ba551c858b (patch) | |
tree | 1280949167f244216ee5ef382be0928a1abbe4e2 /libavdevice/alsa-audio-enc.c | |
parent | 9ff6d0791b220d80844b45c9217113306a50a6cc (diff) |
Use explicit struct initializers for AVOutputFormat/AVInputFormat declarations.
Diffstat (limited to 'libavdevice/alsa-audio-enc.c')
-rw-r--r-- | libavdevice/alsa-audio-enc.c | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/libavdevice/alsa-audio-enc.c b/libavdevice/alsa-audio-enc.c index f3782c5ab6..95887c19ed 100644 --- a/libavdevice/alsa-audio-enc.c +++ b/libavdevice/alsa-audio-enc.c @@ -102,15 +102,13 @@ static int audio_write_packet(AVFormatContext *s1, AVPacket *pkt) } AVOutputFormat ff_alsa_muxer = { - "alsa", - NULL_IF_CONFIG_SMALL("ALSA audio output"), - "", - "", - sizeof(AlsaData), - DEFAULT_CODEC_ID, - CODEC_ID_NONE, - audio_write_header, - audio_write_packet, - ff_alsa_close, - .flags = AVFMT_NOFILE, + .name = "alsa", + .long_name = NULL_IF_CONFIG_SMALL("ALSA audio output"), + .priv_data_size = sizeof(AlsaData), + .audio_codec = DEFAULT_CODEC_ID, + .video_codec = CODEC_ID_NONE, + .write_header = audio_write_header, + .write_packet = audio_write_packet, + .write_trailer = ff_alsa_close, + .flags = AVFMT_NOFILE, }; |