diff options
author | Diego Biurrun <diego@biurrun.de> | 2011-09-23 21:11:15 +0200 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2011-09-24 12:11:19 +0200 |
commit | 8671488799e7f03d7bc985099b73e18ea519ab39 (patch) | |
tree | 921efdee5016bbe3e96f601bb20e9bad45e72e84 /libavcodec/ljpegenc.c | |
parent | 30b4ee7901ec5dbe24f1c75c0c0b43ba551c858b (diff) | |
download | ffmpeg-8671488799e7f03d7bc985099b73e18ea519ab39.tar.gz |
Use explicit struct initializers for AVCodec declarations.
Diffstat (limited to 'libavcodec/ljpegenc.c')
-rw-r--r-- | libavcodec/ljpegenc.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libavcodec/ljpegenc.c b/libavcodec/ljpegenc.c index 56a60c913e..6a90338eb9 100644 --- a/libavcodec/ljpegenc.c +++ b/libavcodec/ljpegenc.c @@ -187,12 +187,12 @@ static int encode_picture_lossless(AVCodecContext *avctx, unsigned char *buf, in AVCodec ff_ljpeg_encoder = { //FIXME avoid MPV_* lossless JPEG should not need them - "ljpeg", - AVMEDIA_TYPE_VIDEO, - CODEC_ID_LJPEG, - sizeof(MpegEncContext), - MPV_encode_init, - encode_picture_lossless, - MPV_encode_end, - .long_name = NULL_IF_CONFIG_SMALL("Lossless JPEG"), + .name = "ljpeg", + .type = AVMEDIA_TYPE_VIDEO, + .id = CODEC_ID_LJPEG, + .priv_data_size = sizeof(MpegEncContext), + .init = MPV_encode_init, + .encode = encode_picture_lossless, + .close = MPV_encode_end, + .long_name = NULL_IF_CONFIG_SMALL("Lossless JPEG"), }; |