Mercurial > mplayer.hg
changeset 35024:60c7713b1061
Support subrip format subtitles.
Patch by Philip Langdale [philipl overt org].
author | reimar |
---|---|
date | Sat, 25 Aug 2012 10:52:00 +0000 |
parents | 6077de703cf4 |
children | a11919e51187 |
files | libmpdemux/demux_lavf.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/demux_lavf.c Sat Aug 25 10:50:50 2012 +0000 +++ b/libmpdemux/demux_lavf.c Sat Aug 25 10:52:00 2012 +0000 @@ -427,7 +427,8 @@ case AVMEDIA_TYPE_SUBTITLE:{ sh_sub_t* sh_sub; char type; - if(codec->codec_id == CODEC_ID_TEXT) + if(codec->codec_id == CODEC_ID_TEXT || + codec->codec_id == AV_CODEC_ID_SUBRIP) type = 't'; else if(codec->codec_id == CODEC_ID_MOV_TEXT) type = 'm';