diff options
author | Aurelien Jacobs <aurel@gnuage.org> | 2010-07-24 22:50:12 +0000 |
---|---|---|
committer | Aurelien Jacobs <aurel@gnuage.org> | 2010-07-24 22:50:12 +0000 |
commit | ba2c508d0c7192e623fe835b3dea9328fdc0f03b (patch) | |
tree | 85adc3c7429dc5eb66dbe4ea52d2d3641b7ed916 /libavformat/raw.c | |
parent | e3f7bf774caad334b258f4494e77420a7c161b63 (diff) | |
download | ffmpeg-ba2c508d0c7192e623fe835b3dea9328fdc0f03b.tar.gz |
add SubRip muxer and demuxer
Originally committed as revision 24488 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/raw.c')
-rw-r--r-- | libavformat/raw.c | 12 |
1 files changed, 12 insertions, 0 deletions
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", |