use designated initializer in ASS (de)muxer

Originally committed as revision 25868 to svn://svn.ffmpeg.org/ffmpeg/trunk
oldabi
Aurelien Jacobs 14 years ago
parent 6fbd85edc8
commit 87d69d3232
  1. 16
      libavformat/assdec.c
  2. 18
      libavformat/assenc.c

@ -203,12 +203,12 @@ static int read_seek2(AVFormatContext *s, int stream_index,
} }
AVInputFormat ass_demuxer = { AVInputFormat ass_demuxer = {
"ass", .name = "ass",
NULL_IF_CONFIG_SMALL("Advanced SubStation Alpha subtitle format"), .long_name = NULL_IF_CONFIG_SMALL("Advanced SubStation Alpha subtitle format"),
sizeof(ASSContext), .priv_data_size = sizeof(ASSContext),
probe, .read_probe = probe,
read_header, .read_header = read_header,
read_packet, .read_packet = read_packet,
read_close, .read_close = read_close,
.read_seek2 = read_seek2, .read_seek2 = read_seek2,
}; };

@ -78,15 +78,13 @@ static int write_trailer(AVFormatContext *s)
} }
AVOutputFormat ass_muxer = { AVOutputFormat ass_muxer = {
"ass", .name = "ass",
NULL_IF_CONFIG_SMALL("Advanced SubStation Alpha subtitle format"), .long_name = NULL_IF_CONFIG_SMALL("Advanced SubStation Alpha subtitle format"),
"text/x-ssa", .mime_type = "text/x-ssa",
"ass,ssa", .extensions = "ass,ssa",
sizeof(ASSContext), .priv_data_size = sizeof(ASSContext),
CODEC_ID_NONE, .write_header = write_header,
CODEC_ID_NONE, .write_packet = write_packet,
write_header, .write_trailer = write_trailer,
write_packet,
write_trailer,
.flags = AVFMT_GLOBALHEADER | AVFMT_NOTIMESTAMPS .flags = AVFMT_GLOBALHEADER | AVFMT_NOTIMESTAMPS
}; };

Loading…
Cancel
Save