[FFmpeg-cvslog] flashsv: Employ explicit AVCodec struct initializers.
Diego Biurrun
git at videolan.org
Wed Apr 27 00:53:58 CEST 2011
ffmpeg | branch: oldabi | Diego Biurrun <diego at biurrun.de> | Mon Apr 25 02:22:46 2011 +0200| [46cb2da1f0acb23d4c54aefafc7d062c2f85c249] | committer: Diego Biurrun
flashsv: Employ explicit AVCodec struct initializers.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=46cb2da1f0acb23d4c54aefafc7d062c2f85c249
---
libavcodec/flashsv.c | 21 ++++++++++-----------
libavcodec/flashsvenc.c | 18 +++++++++---------
2 files changed, 19 insertions(+), 20 deletions(-)
diff --git a/libavcodec/flashsv.c b/libavcodec/flashsv.c
index 095aadd..0fdbfde 100644
--- a/libavcodec/flashsv.c
+++ b/libavcodec/flashsv.c
@@ -242,15 +242,14 @@ static av_cold int flashsv_decode_end(AVCodecContext *avctx)
AVCodec ff_flashsv_decoder = {
- "flashsv",
- AVMEDIA_TYPE_VIDEO,
- CODEC_ID_FLASHSV,
- sizeof(FlashSVContext),
- flashsv_decode_init,
- NULL,
- flashsv_decode_end,
- flashsv_decode_frame,
- CODEC_CAP_DR1,
- .pix_fmts = (const enum PixelFormat[]){PIX_FMT_BGR24, PIX_FMT_NONE},
- .long_name = NULL_IF_CONFIG_SMALL("Flash Screen Video v1"),
+ .name = "flashsv",
+ .type = AVMEDIA_TYPE_VIDEO,
+ .id = CODEC_ID_FLASHSV,
+ .priv_data_size = sizeof(FlashSVContext),
+ .init = flashsv_decode_init,
+ .close = flashsv_decode_end,
+ .decode = flashsv_decode_frame,
+ .capabilities = CODEC_CAP_DR1,
+ .pix_fmts = (const enum PixelFormat[]){PIX_FMT_BGR24, PIX_FMT_NONE},
+ .long_name = NULL_IF_CONFIG_SMALL("Flash Screen Video v1"),
};
diff --git a/libavcodec/flashsvenc.c b/libavcodec/flashsvenc.c
index 86e77aa..9a72b07 100644
--- a/libavcodec/flashsvenc.c
+++ b/libavcodec/flashsvenc.c
@@ -288,14 +288,14 @@ static av_cold int flashsv_encode_end(AVCodecContext *avctx)
}
AVCodec ff_flashsv_encoder = {
- "flashsv",
- AVMEDIA_TYPE_VIDEO,
- CODEC_ID_FLASHSV,
- sizeof(FlashSVContext),
- flashsv_encode_init,
- flashsv_encode_frame,
- flashsv_encode_end,
- .pix_fmts = (const enum PixelFormat[]){PIX_FMT_BGR24, PIX_FMT_NONE},
- .long_name = NULL_IF_CONFIG_SMALL("Flash Screen Video"),
+ .name = "flashsv",
+ .type = AVMEDIA_TYPE_VIDEO,
+ .id = CODEC_ID_FLASHSV,
+ .priv_data_size = sizeof(FlashSVContext),
+ .init = flashsv_encode_init,
+ .encode = flashsv_encode_frame,
+ .close = flashsv_encode_end,
+ .pix_fmts = (const enum PixelFormat[]){PIX_FMT_BGR24, PIX_FMT_NONE},
+ .long_name = NULL_IF_CONFIG_SMALL("Flash Screen Video"),
};
More information about the ffmpeg-cvslog
mailing list