mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-07-02 22:17:01 +08:00
flashsv: Employ explicit AVCodec struct initializers.
This commit is contained in:
@ -242,15 +242,14 @@ static av_cold int flashsv_decode_end(AVCodecContext *avctx)
|
|||||||
|
|
||||||
|
|
||||||
AVCodec ff_flashsv_decoder = {
|
AVCodec ff_flashsv_decoder = {
|
||||||
"flashsv",
|
.name = "flashsv",
|
||||||
AVMEDIA_TYPE_VIDEO,
|
.type = AVMEDIA_TYPE_VIDEO,
|
||||||
CODEC_ID_FLASHSV,
|
.id = CODEC_ID_FLASHSV,
|
||||||
sizeof(FlashSVContext),
|
.priv_data_size = sizeof(FlashSVContext),
|
||||||
flashsv_decode_init,
|
.init = flashsv_decode_init,
|
||||||
NULL,
|
.close = flashsv_decode_end,
|
||||||
flashsv_decode_end,
|
.decode = flashsv_decode_frame,
|
||||||
flashsv_decode_frame,
|
.capabilities = CODEC_CAP_DR1,
|
||||||
CODEC_CAP_DR1,
|
.pix_fmts = (const enum PixelFormat[]){PIX_FMT_BGR24, PIX_FMT_NONE},
|
||||||
.pix_fmts = (const enum PixelFormat[]){PIX_FMT_BGR24, PIX_FMT_NONE},
|
.long_name = NULL_IF_CONFIG_SMALL("Flash Screen Video v1"),
|
||||||
.long_name = NULL_IF_CONFIG_SMALL("Flash Screen Video v1"),
|
|
||||||
};
|
};
|
||||||
|
@ -288,14 +288,14 @@ static av_cold int flashsv_encode_end(AVCodecContext *avctx)
|
|||||||
}
|
}
|
||||||
|
|
||||||
AVCodec ff_flashsv_encoder = {
|
AVCodec ff_flashsv_encoder = {
|
||||||
"flashsv",
|
.name = "flashsv",
|
||||||
AVMEDIA_TYPE_VIDEO,
|
.type = AVMEDIA_TYPE_VIDEO,
|
||||||
CODEC_ID_FLASHSV,
|
.id = CODEC_ID_FLASHSV,
|
||||||
sizeof(FlashSVContext),
|
.priv_data_size = sizeof(FlashSVContext),
|
||||||
flashsv_encode_init,
|
.init = flashsv_encode_init,
|
||||||
flashsv_encode_frame,
|
.encode = flashsv_encode_frame,
|
||||||
flashsv_encode_end,
|
.close = flashsv_encode_end,
|
||||||
.pix_fmts = (const enum PixelFormat[]){PIX_FMT_BGR24, PIX_FMT_NONE},
|
.pix_fmts = (const enum PixelFormat[]){PIX_FMT_BGR24, PIX_FMT_NONE},
|
||||||
.long_name = NULL_IF_CONFIG_SMALL("Flash Screen Video"),
|
.long_name = NULL_IF_CONFIG_SMALL("Flash Screen Video"),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user