add support for Matroska subtitle tracks
[ffmpeg.git] / libavformat / matroskadec.c
index d54a867f6e659f589fc2157102305732f77c1cc9..a38504def9cc5e993f8d7f934471e2155f0388d5 100644 (file)
@@ -2028,10 +2028,8 @@ matroska_read_header (AVFormatContext    *s,
             track = matroska->tracks[i];
             track->stream_index = -1;
 
-            /* libavformat does not really support subtitles.
-             * Also apply some sanity checks. */
-            if ((track->type == MATROSKA_TRACK_TYPE_SUBTITLE) ||
-                (track->codec_id == NULL))
+            /* Apply some sanity checks. */
+            if (track->codec_id == NULL)
                 continue;
 
             for(j=0; ff_mkv_codec_tags[j].str; j++){