diff options
author | Paul B Mahol <onemda@gmail.com> | 2011-12-30 20:00:53 +0100 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2011-12-30 20:00:53 +0100 |
commit | ba10207bbe5ebd97b5afc3f19baf4a1ad8f974d5 (patch) | |
tree | c5602a20dc46f1f6dc9e555d0d1b1926a17cf210 /libavcodec/g729dec.c | |
parent | 73ba2c1e62a870c7d7b27cd8093ef39447a57903 (diff) | |
download | ffmpeg-ba10207bbe5ebd97b5afc3f19baf4a1ad8f974d5.tar.gz |
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 'libavcodec/g729dec.c')
-rw-r--r-- | libavcodec/g729dec.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/libavcodec/g729dec.c b/libavcodec/g729dec.c index 4714f19554..191794b6e7 100644 --- a/libavcodec/g729dec.c +++ b/libavcodec/g729dec.c @@ -714,14 +714,12 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVCodec ff_g729_decoder = { - "g729", - AVMEDIA_TYPE_AUDIO, - CODEC_ID_G729, - sizeof(G729Context), - decoder_init, - NULL, - NULL, - decode_frame, + .name = "g729", + .type = AVMEDIA_TYPE_AUDIO, + .id = CODEC_ID_G729, + .priv_data_size = sizeof(G729Context), + .init = decoder_init, + .decode = decode_frame, .capabilities = CODEC_CAP_DR1, .long_name = NULL_IF_CONFIG_SMALL("G.729"), }; |