Mercurial > mplayer.hg
comparison libmpdemux/demux_lavf.c @ 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 | ceb148e1fe31 |
comparison
equal
deleted
inserted
replaced
35023:6077de703cf4 | 35024:60c7713b1061 |
---|---|
425 break; | 425 break; |
426 } | 426 } |
427 case AVMEDIA_TYPE_SUBTITLE:{ | 427 case AVMEDIA_TYPE_SUBTITLE:{ |
428 sh_sub_t* sh_sub; | 428 sh_sub_t* sh_sub; |
429 char type; | 429 char type; |
430 if(codec->codec_id == CODEC_ID_TEXT) | 430 if(codec->codec_id == CODEC_ID_TEXT || |
431 codec->codec_id == AV_CODEC_ID_SUBRIP) | |
431 type = 't'; | 432 type = 't'; |
432 else if(codec->codec_id == CODEC_ID_MOV_TEXT) | 433 else if(codec->codec_id == CODEC_ID_MOV_TEXT) |
433 type = 'm'; | 434 type = 'm'; |
434 else if(codec->codec_id == CODEC_ID_SSA) | 435 else if(codec->codec_id == CODEC_ID_SSA) |
435 type = 'a'; | 436 type = 'a'; |