diff options
author | Paul B Mahol <onemda@gmail.com> | 2011-12-30 23:00:53 +0400 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2011-12-30 23:00:53 +0400 |
commit | ba10207bbe5ebd97b5afc3f19baf4a1ad8f974d5 (patch) | |
tree | c5602a20dc46f1f6dc9e555d0d1b1926a17cf210 /libavformat/g723_1.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/g723_1.c')
-rw-r--r-- | libavformat/g723_1.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/libavformat/g723_1.c b/libavformat/g723_1.c index 86ef540edf..00cfe16266 100644 --- a/libavformat/g723_1.c +++ b/libavformat/g723_1.c @@ -73,12 +73,10 @@ static int g723_1_read_packet(AVFormatContext *s, AVPacket *pkt) } AVInputFormat ff_g723_1_demuxer = { - "g723_1", - NULL_IF_CONFIG_SMALL("G.723.1 format"), - 0, - NULL, - g723_1_init, - g723_1_read_packet, + .name = "g723_1", + .long_name = NULL_IF_CONFIG_SMALL("G.723.1 format"), + .read_header = g723_1_init, + .read_packet = g723_1_read_packet, .extensions = "tco,rco", .flags = AVFMT_GENERIC_INDEX }; |