From 2ecf9492ff3be5bf1e65e7a9a5fc7a00ae462a4b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Cl=C3=A9ment=20B=C5=93sch?= <ubitux@gmail.com>
Date: Sun, 21 Oct 2012 03:12:04 +0200
Subject: [PATCH] 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.
---
 libavformat/srtenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/srtenc.c b/libavformat/srtenc.c
index 42a264e70cb..f50cfbb1273 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,
 };
-- 
GitLab