lavf/srtenc: set codec to subrip by default.
authorClément Bœsch <ubitux@gmail.com>
Sun, 21 Oct 2012 01:12:04 +0000 (03:12 +0200)
committerClément Bœsch <ubitux@gmail.com>
Wed, 24 Oct 2012 22:17:56 +0000 (00:17 +0200)
We don't have a text encoder yet, so this commit makes automatic
encoding working with srt output.

libavformat/srtenc.c

index 42a264e..f50cfbb 100644 (file)
@@ -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,
 };