summaryrefslogtreecommitdiff
path: root/libavcodec/flashsv2enc.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/flashsv2enc.c
parent73ba2c1e62a870c7d7b27cd8093ef39447a57903 (diff)
downloadffmpeg-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/flashsv2enc.c')
-rw-r--r--libavcodec/flashsv2enc.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/libavcodec/flashsv2enc.c b/libavcodec/flashsv2enc.c
index 27bd87816b..9f7017e033 100644
--- a/libavcodec/flashsv2enc.c
+++ b/libavcodec/flashsv2enc.c
@@ -894,13 +894,13 @@ static av_cold int flashsv2_encode_end(AVCodecContext * avctx)
}
AVCodec ff_flashsv2_encoder = {
- "flashsv2",
- AVMEDIA_TYPE_VIDEO,
- CODEC_ID_FLASHSV2,
- sizeof(FlashSV2Context),
- flashsv2_encode_init,
- flashsv2_encode_frame,
- flashsv2_encode_end,
+ .name = "flashsv2",
+ .type = AVMEDIA_TYPE_VIDEO,
+ .id = CODEC_ID_FLASHSV2,
+ .priv_data_size = sizeof(FlashSV2Context),
+ .init = flashsv2_encode_init,
+ .encode = flashsv2_encode_frame,
+ .close = flashsv2_encode_end,
.pix_fmts = (enum PixelFormat[]) {PIX_FMT_BGR24, PIX_FMT_NONE},
.long_name = NULL_IF_CONFIG_SMALL("Flash Screen Video Version 2"),
.capabilities = CODEC_CAP_EXPERIMENTAL,