summaryrefslogtreecommitdiff
path: root/libavcodec/j2kenc.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2011-12-30 20:00:53 +0100
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2011-12-30 20:00:53 +0100
commitba10207bbe5ebd97b5afc3f19baf4a1ad8f974d5 (patch)
treec5602a20dc46f1f6dc9e555d0d1b1926a17cf210 /libavcodec/j2kenc.c
parent73ba2c1e62a870c7d7b27cd8093ef39447a57903 (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 'libavcodec/j2kenc.c')
-rw-r--r--libavcodec/j2kenc.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/libavcodec/j2kenc.c b/libavcodec/j2kenc.c
index 58789c9a86..37e31a9c69 100644
--- a/libavcodec/j2kenc.c
+++ b/libavcodec/j2kenc.c
@@ -1036,13 +1036,13 @@ static int j2kenc_destroy(AVCodecContext *avctx)
}
AVCodec ff_jpeg2000_encoder = {
- "j2k",
- AVMEDIA_TYPE_VIDEO,
- CODEC_ID_JPEG2000,
- sizeof(J2kEncoderContext),
- j2kenc_init,
- encode_frame,
- j2kenc_destroy,
+ .name = "j2k",
+ .type = AVMEDIA_TYPE_VIDEO,
+ .id = CODEC_ID_JPEG2000,
+ .priv_data_size = sizeof(J2kEncoderContext),
+ .init = j2kenc_init,
+ .encode = encode_frame,
+ .close = j2kenc_destroy,
.capabilities= CODEC_CAP_EXPERIMENTAL,
.long_name = NULL_IF_CONFIG_SMALL("JPEG 2000"),
.pix_fmts =