]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/rawdec.c
Merge commit '846c3d6aca5484904e60946c4fe8b8833bc07f92'
[ffmpeg] / libavformat / rawdec.c
index b38a4b5e5d4bacf8e1e65df222290069fd60bc46..6249352d28f787890444e167411cc7cd0ff0e00c 100644 (file)
@@ -91,6 +91,17 @@ fail:
     return ret;
 }
 
+int ff_raw_subtitle_read_header(AVFormatContext *s)
+{
+    AVStream *st = avformat_new_stream(s, NULL);
+    if (!st)
+        return AVERROR(ENOMEM);
+    st->codecpar->codec_type = AVMEDIA_TYPE_SUBTITLE;
+    st->codecpar->codec_id = s->iformat->raw_codec_id;
+    st->start_time = 0;
+    return 0;
+}
+
 int ff_raw_data_read_header(AVFormatContext *s)
 {
     AVStream *st = avformat_new_stream(s, NULL);