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/j2kdec.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/j2kdec.c')
-rw-r--r-- | libavcodec/j2kdec.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/libavcodec/j2kdec.c b/libavcodec/j2kdec.c index e35c97d860..d605b13ea7 100644 --- a/libavcodec/j2kdec.c +++ b/libavcodec/j2kdec.c @@ -1068,14 +1068,13 @@ static av_cold int decode_end(AVCodecContext *avctx) } AVCodec ff_jpeg2000_decoder = { - "j2k", - AVMEDIA_TYPE_VIDEO, - CODEC_ID_JPEG2000, - sizeof(J2kDecoderContext), - j2kdec_init, - NULL, - decode_end, - decode_frame, + .name = "j2k", + .type = AVMEDIA_TYPE_VIDEO, + .id = CODEC_ID_JPEG2000, + .priv_data_size = sizeof(J2kDecoderContext), + .init = j2kdec_init, + .close = decode_end, + .decode = decode_frame, .capabilities = CODEC_CAP_EXPERIMENTAL, .long_name = NULL_IF_CONFIG_SMALL("JPEG 2000"), .pix_fmts = |