summaryrefslogtreecommitdiff
path: root/libavformat/srtenc.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/srtenc.c')
-rw-r--r--libavformat/srtenc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/srtenc.c b/libavformat/srtenc.c
index 7fe559f487..6b8278fa80 100644
--- a/libavformat/srtenc.c
+++ b/libavformat/srtenc.c
@@ -42,6 +42,7 @@ static int srt_write_header(AVFormatContext *avf)
return AVERROR(EINVAL);
}
if (avf->streams[0]->codec->codec_id != AV_CODEC_ID_TEXT &&
+ avf->streams[0]->codec->codec_id != AV_CODEC_ID_SUBRIP &&
avf->streams[0]->codec->codec_id != AV_CODEC_ID_SRT) {
av_log(avf, AV_LOG_ERROR,
"Unsupported subtitles codec: %s\n",