[FFmpeg-cvslog] lavf/srtenc: set codec to subrip by default.

Clément Bœsch git at videolan.org
Thu Oct 25 00:13:10 CEST 2012


ffmpeg | branch: master | Clément Bœsch <ubitux at gmail.com> | Sun Oct 21 03:12:04 2012 +0200| [2ecf9492ff3be5bf1e65e7a9a5fc7a00ae462a4b] | committer: Clément Bœsch

lavf/srtenc: set codec to subrip by default.

We don't have a text encoder yet, so this commit makes automatic
encoding working with srt output.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2ecf9492ff3be5bf1e65e7a9a5fc7a00ae462a4b
---

 libavformat/srtenc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/srtenc.c b/libavformat/srtenc.c
index 42a264e..f50cfbb 100644
--- a/libavformat/srtenc.c
+++ b/libavformat/srtenc.c
@@ -93,5 +93,5 @@ AVOutputFormat ff_srt_muxer = {
     .write_header   = srt_write_header,
     .write_packet   = srt_write_packet,
     .flags          = AVFMT_VARIABLE_FPS,
-    .subtitle_codec = AV_CODEC_ID_TEXT,
+    .subtitle_codec = AV_CODEC_ID_SUBRIP,
 };



More information about the ffmpeg-cvslog mailing list