[FFmpeg-devel] [PATCH 3/3] lavf/srtenc: set codec to subrip by default.
Clément Bœsch
ubitux at gmail.com
Sun Oct 21 03:29:08 CEST 2012
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 d92f559..d2b9d66 100644
--- a/libavformat/srtenc.c
+++ b/libavformat/srtenc.c
@@ -101,5 +101,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,
};
--
1.7.12.4
More information about the ffmpeg-devel
mailing list