summaryrefslogtreecommitdiff
path: root/libavformat/pcmenc.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2011-09-23 20:50:11 +0200
committerDiego Biurrun <diego@biurrun.de>2011-09-24 12:11:17 +0200
commit30b4ee7901ec5dbe24f1c75c0c0b43ba551c858b (patch)
tree1280949167f244216ee5ef382be0928a1abbe4e2 /libavformat/pcmenc.c
parent9ff6d0791b220d80844b45c9217113306a50a6cc (diff)
Use explicit struct initializers for AVOutputFormat/AVInputFormat declarations.
Diffstat (limited to 'libavformat/pcmenc.c')
-rw-r--r--libavformat/pcmenc.c21
1 files changed, 9 insertions, 12 deletions
diff --git a/libavformat/pcmenc.c b/libavformat/pcmenc.c
index 928124e9b0..553df1f877 100644
--- a/libavformat/pcmenc.c
+++ b/libavformat/pcmenc.c
@@ -22,18 +22,15 @@
#include "avformat.h"
#include "rawenc.h"
-#define PCMDEF(name, long_name, ext, codec) \
-AVOutputFormat ff_pcm_ ## name ## _muxer = {\
- #name,\
- NULL_IF_CONFIG_SMALL(long_name),\
- NULL,\
- ext,\
- 0,\
- codec,\
- CODEC_ID_NONE,\
- NULL,\
- ff_raw_write_packet,\
- .flags= AVFMT_NOTIMESTAMPS,\
+#define PCMDEF(name_, long_name_, ext, codec) \
+AVOutputFormat ff_pcm_ ## name_ ## _muxer = { \
+ .name = #name_, \
+ .long_name = NULL_IF_CONFIG_SMALL(long_name_), \
+ .extensions = ext, \
+ .audio_codec = codec, \
+ .video_codec = CODEC_ID_NONE, \
+ .write_packet = ff_raw_write_packet, \
+ .flags = AVFMT_NOTIMESTAMPS, \
};
PCMDEF(f64be, "PCM 64 bit floating-point big-endian format",