}
AVInputFormat ass_demuxer = {
- "ass",
- NULL_IF_CONFIG_SMALL("Advanced SubStation Alpha subtitle format"),
- sizeof(ASSContext),
- probe,
- read_header,
- read_packet,
- read_close,
- .read_seek2 = read_seek2,
+ .name = "ass",
+ .long_name = NULL_IF_CONFIG_SMALL("Advanced SubStation Alpha subtitle format"),
+ .priv_data_size = sizeof(ASSContext),
+ .read_probe = probe,
+ .read_header = read_header,
+ .read_packet = read_packet,
+ .read_close = read_close,
+ .read_seek2 = read_seek2,
};
}
AVOutputFormat ass_muxer = {
- "ass",
- NULL_IF_CONFIG_SMALL("Advanced SubStation Alpha subtitle format"),
- "text/x-ssa",
- "ass,ssa",
- sizeof(ASSContext),
- CODEC_ID_NONE,
- CODEC_ID_NONE,
- write_header,
- write_packet,
- write_trailer,
+ .name = "ass",
+ .long_name = NULL_IF_CONFIG_SMALL("Advanced SubStation Alpha subtitle format"),
+ .mime_type = "text/x-ssa",
+ .extensions = "ass,ssa",
+ .priv_data_size = sizeof(ASSContext),
+ .write_header = write_header,
+ .write_packet = write_packet,
+ .write_trailer = write_trailer,
.flags = AVFMT_GLOBALHEADER | AVFMT_NOTIMESTAMPS
};