diff options
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/matroska.c | 5 | ||||
-rw-r--r-- | libavformat/matroskadec.c | 6 |
2 files changed, 7 insertions, 4 deletions
diff --git a/libavformat/matroska.c b/libavformat/matroska.c index d593dea..df8d951 100644 --- a/libavformat/matroska.c +++ b/libavformat/matroska.c @@ -58,6 +58,11 @@ CodecTags ff_mkv_codec_tags[]={ {"A_REAL/ATRC" , CODEC_ID_ATRAC3}, {"A_REAL/COOK" , CODEC_ID_COOK}, // {"A_REAL/SIPR" , CODEC_ID_SIPRO}, + + {"S_TEXT/ASCII" , CODEC_ID_TEXT}, + {"S_TEXT/UTF8" , CODEC_ID_TEXT}, + {"S_VOBSUB" , CODEC_ID_DVD_SUBTITLE}, + {NULL , CODEC_ID_NONE} /* TODO: AC3-9/10 (?), Real, Musepack, Quicktime */ }; diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c index d54a867..a38504d 100644 --- a/libavformat/matroskadec.c +++ b/libavformat/matroskadec.c @@ -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++){ |