| ... | ... |
@@ -242,15 +242,14 @@ static av_cold int flashsv_decode_end(AVCodecContext *avctx) |
| 242 | 242 |
|
| 243 | 243 |
|
| 244 | 244 |
AVCodec ff_flashsv_decoder = {
|
| 245 |
- "flashsv", |
|
| 246 |
- AVMEDIA_TYPE_VIDEO, |
|
| 247 |
- CODEC_ID_FLASHSV, |
|
| 248 |
- sizeof(FlashSVContext), |
|
| 249 |
- flashsv_decode_init, |
|
| 250 |
- NULL, |
|
| 251 |
- flashsv_decode_end, |
|
| 252 |
- flashsv_decode_frame, |
|
| 253 |
- CODEC_CAP_DR1, |
|
| 254 |
- .pix_fmts = (const enum PixelFormat[]){PIX_FMT_BGR24, PIX_FMT_NONE},
|
|
| 255 |
- .long_name = NULL_IF_CONFIG_SMALL("Flash Screen Video v1"),
|
|
| 245 |
+ .name = "flashsv", |
|
| 246 |
+ .type = AVMEDIA_TYPE_VIDEO, |
|
| 247 |
+ .id = CODEC_ID_FLASHSV, |
|
| 248 |
+ .priv_data_size = sizeof(FlashSVContext), |
|
| 249 |
+ .init = flashsv_decode_init, |
|
| 250 |
+ .close = flashsv_decode_end, |
|
| 251 |
+ .decode = flashsv_decode_frame, |
|
| 252 |
+ .capabilities = CODEC_CAP_DR1, |
|
| 253 |
+ .pix_fmts = (const enum PixelFormat[]){PIX_FMT_BGR24, PIX_FMT_NONE},
|
|
| 254 |
+ .long_name = NULL_IF_CONFIG_SMALL("Flash Screen Video v1"),
|
|
| 256 | 255 |
}; |
| ... | ... |
@@ -288,14 +288,14 @@ static av_cold int flashsv_encode_end(AVCodecContext *avctx) |
| 288 | 288 |
} |
| 289 | 289 |
|
| 290 | 290 |
AVCodec ff_flashsv_encoder = {
|
| 291 |
- "flashsv", |
|
| 292 |
- AVMEDIA_TYPE_VIDEO, |
|
| 293 |
- CODEC_ID_FLASHSV, |
|
| 294 |
- sizeof(FlashSVContext), |
|
| 295 |
- flashsv_encode_init, |
|
| 296 |
- flashsv_encode_frame, |
|
| 297 |
- flashsv_encode_end, |
|
| 298 |
- .pix_fmts = (const enum PixelFormat[]){PIX_FMT_BGR24, PIX_FMT_NONE},
|
|
| 299 |
- .long_name = NULL_IF_CONFIG_SMALL("Flash Screen Video"),
|
|
| 291 |
+ .name = "flashsv", |
|
| 292 |
+ .type = AVMEDIA_TYPE_VIDEO, |
|
| 293 |
+ .id = CODEC_ID_FLASHSV, |
|
| 294 |
+ .priv_data_size = sizeof(FlashSVContext), |
|
| 295 |
+ .init = flashsv_encode_init, |
|
| 296 |
+ .encode = flashsv_encode_frame, |
|
| 297 |
+ .close = flashsv_encode_end, |
|
| 298 |
+ .pix_fmts = (const enum PixelFormat[]){PIX_FMT_BGR24, PIX_FMT_NONE},
|
|
| 299 |
+ .long_name = NULL_IF_CONFIG_SMALL("Flash Screen Video"),
|
|
| 300 | 300 |
}; |
| 301 | 301 |
|