Mercurial > libavformat.hg
diff raw.c @ 6308:2b1ab404f1cf libavformat
add SubRip muxer and demuxer
| author | aurel |
|---|---|
| date | Sat, 24 Jul 2010 22:50:12 +0000 |
| parents | f2c92e715300 |
| children | c12a0b951902 |
line wrap: on
line diff
--- a/raw.c Sat Jul 24 12:58:28 2010 +0000 +++ b/raw.c Sat Jul 24 22:50:12 2010 +0000 @@ -1082,6 +1082,18 @@ }; #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",
