From ba2c508d0c7192e623fe835b3dea9328fdc0f03b Mon Sep 17 00:00:00 2001 From: Aurelien Jacobs Date: Sat, 24 Jul 2010 22:50:12 +0000 Subject: add SubRip muxer and demuxer Originally committed as revision 24488 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/raw.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'libavformat/raw.c') diff --git a/libavformat/raw.c b/libavformat/raw.c index 0c83c429ba..dc48c91a46 100644 --- a/libavformat/raw.c +++ b/libavformat/raw.c @@ -1082,6 +1082,18 @@ AVOutputFormat mlp_muxer = { }; #endif +#if CONFIG_SRT_MUXER +AVOutputFormat srt_muxer = { + .name = "srt", + .long_name = NULL_IF_CONFIG_SMALL("SubRip subtitle format"), + .mime_type = "application/x-subrip", + .extensions = "srt", + .write_packet = raw_write_packet, + .flags = AVFMT_NOTIMESTAMPS, + .subtitle_codec = CODEC_ID_SRT, +}; +#endif + #if CONFIG_TRUEHD_DEMUXER AVInputFormat truehd_demuxer = { "truehd", -- cgit v1.2.3